~communesplone/appy/communesplone

« back to all changes in this revision

Viewing changes to gen/__init__.py

  • Committer: Gaetan Delannay
  • Date: 2011-07-07 07:43:16 UTC
  • Revision ID: gaetan.delannay@gmail.com-20110707074316-2xryomtbxs0qhoc6
appy.gen: in the default context of any pod field, added function '_' corresponding to obj.translate; appy.gen: xhtml2odt bugfix: when a <div> was contained in <ol><li> or <ul><li>, the whole function ouput was an empty string.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2101
2101
        # Define parameters to give to the appy.pod renderer
2102
2102
        podContext = {'tool': tool, 'user': obj.user, 'self': obj,
2103
2103
                      'now': obj.o.getProductConfig().DateTime(),
2104
 
                      'projectFolder': tool.getDiskFolder()}
 
2104
                      '_': obj.translate, 'projectFolder': tool.getDiskFolder()}
2105
2105
        # If the POD document is related to a query, get it from the request,
2106
2106
        # execute it and put the result in the context.
2107
2107
        isQueryRelated = rq.get('queryData', None)