Added method Wrapper.isEmpty(name) that checks if the content of some field is empty or not on a given object.

This commit is contained in:
Gaetan Delannay 2012-06-13 09:31:09 +02:00
parent 5b255ce55d
commit e13575c506
4 changed files with 10 additions and 1 deletions

View file

@ -178,7 +178,8 @@ class Group(ModelClass):
roles = gen.String(validator=gen.Selection('getGrantableRoles'),
multiplicity=(0,None), **m)
users = gen.Ref(User, multiplicity=(0,None), add=False, link=True,
back=gen.Ref(attribute='groups', show=User.showRoles),
back=gen.Ref(attribute='groups', show=User.showRoles,
multiplicity=(0,None)),
showHeaders=True, shownInfo=('title', 'login'))
# The Translation class --------------------------------------------------------