[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:
Gaetan Delannay 2012-08-21 19:57:23 +02:00
parent 61b0ed2fce
commit 812bda7452
4 changed files with 51 additions and 31 deletions

View file

@ -511,7 +511,7 @@ class ToolClassDescriptor(ClassDescriptor):
fieldName = 'resultColumnsFor%s' % className
fieldType = gen.String(multiplicity=(0,None), validator=gen.Selection(
'_appy_getAllFields*%s' % className), page='userInterface',
group=classDescr.klass.__name__)
group=classDescr.klass.__name__, default=['title'])
self.addField(fieldName, fieldType)
def addSearchRelatedFields(self, classDescr):