Mercurial > kallithea
comparison pylons_app/model/forms.py @ 418:63c697d1a631
added logic for changin defualt permissions, and option to overwrite all defualt permissions on each repository
fixed registration form text
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 21 Aug 2010 18:31:28 +0200 |
parents | 3ed2d46a2ca7 |
children | d66a7fa7689b |
comparison
equal
deleted
inserted
replaced
417:3ed2d46a2ca7 | 418:63c697d1a631 |
---|---|
330 | 330 |
331 def DefaultPermissionsForm(perms_choices, register_choices, create_choices): | 331 def DefaultPermissionsForm(perms_choices, register_choices, create_choices): |
332 class _DefaultPermissionsForm(formencode.Schema): | 332 class _DefaultPermissionsForm(formencode.Schema): |
333 allow_extra_fields = True | 333 allow_extra_fields = True |
334 filter_extra_fields = True | 334 filter_extra_fields = True |
335 overwrite_default = OneOf(['true', 'false'], if_missing='false') | |
335 default_perm = OneOf(perms_choices) | 336 default_perm = OneOf(perms_choices) |
336 default_register = OneOf(register_choices) | 337 default_register = OneOf(register_choices) |
337 default_create = OneOf(create_choices) | 338 default_create = OneOf(create_choices) |
338 | 339 |
339 return _DefaultPermissionsForm | 340 return _DefaultPermissionsForm |