Changeset 2109 for trunk/loreality/loreality/model/form.py
- Timestamp:
- 07/12/10 14:48:12 (23 months ago)
- File:
-
- 1 edited
-
trunk/loreality/loreality/model/form.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/loreality/loreality/model/form.py
r2106 r2109 6 6 from formencode.foreach import ForEach 7 7 from formencode.api import NoDefault 8 9 class FormField: 10 name = "" 11 formtype = "" 12 def __init__( self, **kwargs): 13 self.__dict__.update( kwargs ) 8 14 9 15 class CampaignNameForm(Schema): … … 57 63 plane = String() 58 64 65 class MessageForm(Schema): 66 allow_extra_fields = True 67 filter_extra_fields = True 68 69 pre_validators = [variabledecode.NestedVariables()] 70 subject = String(not_empty=True) 71 # pilots = ForEach( Pilot()) 72 text = String() 73
Note: See TracChangeset
for help on using the changeset viewer.
