Mercurial > kallithea
comparison pylons_app/model/forms.py @ 363:98abf8953b87
Added user registration, changed login url schema, moved it into _admin/ for safety
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 24 Jul 2010 02:18:48 +0200 |
parents | ebdd1a89cdd9 |
children | a26f48ad7a8a |
comparison
equal
deleted
inserted
replaced
362:558eb7c5028f | 363:98abf8953b87 |
---|---|
263 lastname = UnicodeString(strip=True, min=3, not_empty=True) | 263 lastname = UnicodeString(strip=True, min=3, not_empty=True) |
264 email = Email(not_empty=True) | 264 email = Email(not_empty=True) |
265 | 265 |
266 return _UserForm | 266 return _UserForm |
267 | 267 |
268 RegisterForm = UserForm | |
269 | |
270 | |
268 def RepoForm(edit=False, old_data={}): | 271 def RepoForm(edit=False, old_data={}): |
269 class _RepoForm(formencode.Schema): | 272 class _RepoForm(formencode.Schema): |
270 allow_extra_fields = True | 273 allow_extra_fields = True |
271 filter_extra_fields = False | 274 filter_extra_fields = False |
272 repo_name = All(UnicodeString(strip=True, min=1, not_empty=True), ValidRepoName(edit, old_data)) | 275 repo_name = All(UnicodeString(strip=True, min=1, not_empty=True), ValidRepoName(edit, old_data)) |