[gen] Bugfix in model.py::class User.

This commit is contained in:
Gaetan Delannay 2014-11-25 22:15:46 +01:00
parent 02a7be98ff
commit 79ebc1cbf9
2 changed files with 3 additions and 4 deletions

View file

@ -187,9 +187,9 @@ class User(ModelClass):
label=(None, 'password1'), **pm) label=(None, 'password1'), **pm)
password4 = gen.String(show=showPassword34, format=gen.String.PASSWORD, password4 = gen.String(show=showPassword34, format=gen.String.PASSWORD,
label=(None, 'password2'), **pm) label=(None, 'password2'), **pm)
pm['multiplicity'] = (0, None)
def showEmail(self): pass def showEmail(self): pass
email = gen.String(show=showEmail, **pm) email = gen.String(show=showEmail, **pm)
pm['multiplicity'] = (0, None)
def showRoles(self): pass def showRoles(self): pass
roles = gen.String(show=showRoles, indexed=True, roles = gen.String(show=showRoles, indexed=True,
validator=gen.Selection('getGrantableRoles'), **pm) validator=gen.Selection('getGrantableRoles'), **pm)

View file

@ -28,9 +28,8 @@ input[type=submit] { border: 1px solid #d0d0d0; background-color: #f8f8f8;
cursor: pointer } cursor: pointer }
input[type=password] { border: 1px solid #d0d0d0; input[type=password] { border: 1px solid #d0d0d0;
font-family: "Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,Verdana,sans-serif } font-family: "Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,Verdana,sans-serif }
input[type=text] { border: 1px solid #d0d0d0; input[type=text] { border: 1px solid #d0d0d0; padding: 0 2px; margin-bottom:1px;
font-family: "Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,Verdana,sans-serif; font-family: "Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,Verdana,sans-serif }
margin-bottom: 1px }
select { border: 1px solid #d0d0d0; background-color: white } select { border: 1px solid #d0d0d0; background-color: white }
textarea { width: 99%; font: 100% "Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,Verdana,sans-serif; textarea { width: 99%; font: 100% "Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,Verdana,sans-serif;