[shared] Improvements to the XmlMarshaller and bugfix: Mixin.xml returns appy.Object instances correctly marshalled.

This commit is contained in:
Gaetan Delannay 2014-12-09 11:40:30 +01:00
parent 12836a40dc
commit b39c5553ea
3 changed files with 30 additions and 38 deletions

View file

@ -484,7 +484,7 @@ class Pod(Field):
obj = obj.appy()
template = template or self.template[0]
format = format or 'odt'
# Security check.
# Security check
if not noSecurity and not queryData:
if self.showTemplate and not self.showTemplate(obj, template):
raise Exception(self.UNAUTHORIZED)
@ -495,7 +495,7 @@ class Pod(Field):
if frozen:
fileName = self.getDownloadName(obj, template, format, False)
return FileInfo(frozen, inDb=False, uploadName=fileName)
# We must call pod to compute a pod document from "template".
# We must call pod to compute a pod document from "template"
tool = obj.tool
diskFolder = tool.getDiskFolder()
# Get the path to the pod template.