[gen] Bugfix for result-tied POD templates.
This commit is contained in:
parent
240ce59519
commit
7b94bfb85e
7 changed files with 29 additions and 16 deletions
|
@ -1206,9 +1206,15 @@ class String(Type):
|
|||
|
||||
def getDefaultLayouts(self):
|
||||
'''Returns the default layouts for this type. Default layouts can vary
|
||||
acccording to format or multiplicity.'''
|
||||
if self.format in (String.TEXT, String.XHTML):
|
||||
acccording to format, multiplicity or history.'''
|
||||
if self.format == String.TEXT:
|
||||
return {'view': 'l-f', 'edit': 'lrv-d-f'}
|
||||
elif self.format == String.XHTML:
|
||||
if self.historized:
|
||||
view = 'lc-f'
|
||||
else:
|
||||
view = 'l-f'
|
||||
return {'view': view, 'edit': 'lrv-d-f'}
|
||||
elif self.isMultiValued():
|
||||
return {'view': 'l-f', 'edit': 'lrv-f'}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue