comparison pylons_app/model/forms.py @ 350:664a5b8c551a

Added application settings, are now customizable from database fixed all instances of sqlachemy to be removed() after execution.
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 14 Jul 2010 18:31:06 +0200
parents 40bccabf4574
children 5bbcc0cac389
comparison
equal deleted inserted replaced
349:031152a540c5 350:664a5b8c551a
265 265
266 chained_validators = [ValidPerms, ValidSettings] 266 chained_validators = [ValidPerms, ValidSettings]
267 return _RepoForm 267 return _RepoForm
268 268
269 269
270 270 def ApplicationSettingsForm():
271 271 class _ApplicationSettingsForm(formencode.Schema):
272 allow_extra_fields = True
273 filter_extra_fields = False
274 app_title = UnicodeString(strip=True, min=3, not_empty=True)
275 app_auth_realm = UnicodeString(strip=True, min=3, not_empty=True)
276
277 return _ApplicationSettingsForm
278
279
280