[gen] Added some layouts for Ref fields in Ref.wLayouts and Ref.wdLayouts; added a new, simpler way of defining auto-references (=Ref fields that refer to the class containing the field), via method appy.gen.autoref; stop catching exceptions raised by Actions (so a partial action can't be committed anymore).
This commit is contained in:
parent
61b0ed2fce
commit
812bda7452
4 changed files with 51 additions and 31 deletions
|
@ -254,7 +254,8 @@ class Tool(ModelClass):
|
|||
translations = gen.Ref(Translation, multiplicity=(0,None), add=False,
|
||||
link=False, show='view', page=pt,
|
||||
back=gen.Ref(attribute='trToTool', show=False))
|
||||
loadTranslationsAtStartup = gen.Boolean(default=True, show=False, page=pt)
|
||||
loadTranslationsAtStartup = gen.Boolean(default=True, show=False, page=pt,
|
||||
layouts='f')
|
||||
pages = gen.Ref(Page, multiplicity=(0,None), add=True, link=False,
|
||||
show='view', back=gen.Ref(attribute='toTool3', show=False),
|
||||
page=gen.Page('pages', show=isManager))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue