fillerbase Module
Classes to help fill widgets with data
Copyright (c) 2008 Christopher Perkins Original Version by Christopher Perkins 2008 Released under MIT license.
Bases: sprox.formbase.EditableForm
Creates a form for editing records that has select shuttles for the multiple relations.
| Modifiers : | see sprox.formbase.FormBase |
|---|---|
| Usage : |
>>> from sprox.dojo.formbase import DojoEditableForm
>>> from formencode import Schema
>>> from formencode.validators import FieldsMatch
>>> class Form(DojoEditableForm):
... __model__ = User
... __limit_fields__ = ['user_name', 'groups']
>>> edit_form = Form()
>>> print edit_form()
Available
Selected
//create an object of this type here
A pass-thru to the widget’s validate function.
Bases: sprox.formbase.AddRecordForm
Creates a form for adding records that has select shuttles for the multiple relations.
| Modifiers : | see sprox.formbase.FormBase |
|---|---|
| Usage : |
>>> from sprox.dojo.formbase import DojoAddRecordForm
>>> from formencode import Schema
>>> from formencode.validators import FieldsMatch
>>> class Form(DojoAddRecordForm):
... __model__ = User
... __limit_fields__ = ['user_name', 'groups']
>>> add_form = Form()
>>> print add_form()
Available
Selected
//create an object of this type here
A pass-thru to the widget’s validate function.