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.
This commit is contained in:
parent
02fce03143
commit
93eb16670b
5 changed files with 1770 additions and 1748 deletions
|
@ -2101,7 +2101,7 @@ class Pod(Type):
|
|||
# Define parameters to give to the appy.pod renderer
|
||||
podContext = {'tool': tool, 'user': obj.user, 'self': obj,
|
||||
'now': obj.o.getProductConfig().DateTime(),
|
||||
'projectFolder': tool.getDiskFolder()}
|
||||
'_': obj.translate, 'projectFolder': tool.getDiskFolder()}
|
||||
# If the POD document is related to a query, get it from the request,
|
||||
# execute it and put the result in the context.
|
||||
isQueryRelated = rq.get('queryData', None)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue