sprox.dojo.formbase

fillerbase Module

Classes to help fill widgets with data

Copyright (c) 2008 Christopher Perkins Original Version by Christopher Perkins 2008 Released under MIT license.

Classes

class sprox.dojo.formbase.DojoEditableForm(provider_hint=None, **provider_hints)

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
validate(params, state=None)

A pass-thru to the widget’s validate function.

class sprox.dojo.formbase.DojoAddRecordForm(provider_hint=None, **provider_hints)

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
validate(params, state=None)

A pass-thru to the widget’s validate function.

Discuss

blog comments powered by Disqus

Table Of Contents

Previous topic

sprox.dojo.fillerbase

Next topic

test_model

This Page