[gen] Added attribute Field.view allowing to specify, for any field, an alternative pxView.

This commit is contained in:
Gaetan Delannay 2014-12-09 15:19:28 +01:00
parent 186175250d
commit e01615476b
17 changed files with 45 additions and 36 deletions

View file

@ -59,7 +59,7 @@ class Action(Field):
width=None, height=None, maxChars=None, colspan=1, action=None,
result='computation', confirm=False, master=None,
masterValue=None, focus=False, historized=False, mapping=None,
label=None, icon=None, xml=None):
label=None, icon=None, view=None, xml=None):
# Can be a single method or a list/tuple of methods
self.action = action
# For the 'result' param:
@ -80,7 +80,7 @@ class Action(Field):
move, indexed, False, specificReadPermission,
specificWritePermission, width, height, None, colspan,
master, masterValue, focus, historized, mapping, label,
None, None, None, None, False, xml)
None, None, None, None, False, view, xml)
self.validable = False
self.renderLabel = False # Label is rendered directly within the button