[gen] Bugfixes.
This commit is contained in:
parent
50bd996c3b
commit
6cd64fdc50
4 changed files with 10 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue