[gen] Ref field: param 'shownInfo' can now be a method.

This commit is contained in:
Gaetan Delannay 2014-12-09 09:27:40 +01:00
parent c53654a1a1
commit 12836a40dc
4 changed files with 25 additions and 18 deletions

View file

@ -825,7 +825,8 @@ class XmlMarshaller:
and (field.name not in self.fieldsToMarshall): continue
# Determine field type and value
fieldType = (field.type == 'File') and 'file' or 'basic'
v = field.getXmlValue(instance, field.getValue(instance))
v = field.getXmlValue(instance.appy(),
field.getValue(instance))
self.dumpField(res, field.name, v, fieldType=fieldType)
# Dump the object history
if hasattr(instance.aq_base, 'workflow_history'):