[gen] Bugfixes.

This commit is contained in:
Gaetan Delannay 2014-12-15 19:36:00 +01:00
parent 50bd996c3b
commit 6cd64fdc50
4 changed files with 10 additions and 6 deletions

View file

@ -1514,10 +1514,11 @@ class BaseMixin:
return False
if parent.meta_type not in ('Folder', 'Temporary Folder'): return parent
def getShownValue(self, name):
def getShownValue(self, name='title', language=None):
'''Call field.getShownValue on field named p_name.'''
field = self.getAppyType('title')
return field.getShownValue(self, field.getValue(self))
field = self.getAppyType(name)
return field.getShownValue(self, field.getValue(self),
language=language)
def getBreadCrumb(self, inPopup=False):
'''Gets breadcrumb info about this object and its parents (if it must

View file

@ -893,6 +893,9 @@ class AbstractWrapper(object):
setattr(appyObj, attrName, attrValue)
except AttributeError, ae:
if raiseOnWrongAttribute: raise ae
# Call custom early initialization
if executeMethods and hasattr(appyObj, 'onEditEarly'):
appyObj.onEditEarly()
if isField:
# Link the object to this one
field.linkObject(self, appyObj, executeMethods=executeMethods)