AlterEgo
old web2py blog
Useful Links
List all entries
Book
Interactive Examples
F.A.Q.
Free Applications
Plugins
Recipes
Demo of Admin Interface
Semantic web extension
Some of the information here may be outdated, please check the book instead
Edit page
Title:
Security Code:
Body:
(use
this
wiki markup)
If your application needs to add custom validators, then these are easy to develop. In order to keep your application portable, it is best to add these to your application's modules folder rather than amend the base validators.py The new validators.py file needs the same header as the original (to import the correct modules) - just change 'storage' to 'gluon.storage'. Then at the top of your model's db.py add: exec('from applications.%s.modules.validators import *' % request.application)
© 2008-2010 by Massimo Di Pierro - All rights reserved - Powered by
web2py
- design derived from a theme by
the earlybird
The content of this book is released under the
Artistic License 2.0
- Modified content cannot be reproduced.