/[pac]/pac/PACDefault/ActionRecipient.py
ViewVC logotype

Diff of /pac/PACDefault/ActionRecipient.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11 by tvon, Thu Oct 2 07:21:13 2003 UTC revision 1.12 by tvon, Fri Oct 3 17:18:29 2003 UTC
# Line 75  schema = BaseSchema + Schema(( Line 75  schema = BaseSchema + Schema((
75          index="FieldIndex",          index="FieldIndex",
76          searchable=1,          searchable=1,
77          ),          ),
78      # mmm, True == Male (of course, since I'm a guy)  # mmm, True == Male (of course, since I'm a guy)
79      BooleanField('gender',  #    BooleanField('gender',
80          widget=BooleanWidget(label='Gender'),  #        widget=BooleanWidget(label='Gender'),
81    #        storage=PostgreSQLStorage(),
82    #        ),
83        StringField('gender',
84            widget=SelectionWidget(label='Gender'),
85            vocabulary='getGenders',
86          storage=PostgreSQLStorage(),          storage=PostgreSQLStorage(),
87            index='FieldIndex',
88            searchable=1,
89          ),          ),
90      LinesField('family',      LinesField('family',
91          widget=LinesWidget(label='Family'),          widget=LinesWidget(label='Family'),
# Line 170  class ActionRecipient(TemplateMixin, Bas Line 177  class ActionRecipient(TemplateMixin, Bas
177    
178          return result          return result
179    
180        # This could be stored as a property somewhere, but that seems kind of
181        # silly
182        def getGenders(self):
183            return DisplayList(( ('M', 'Male'), ('F', 'Female'),))
184    
185  registerType(ActionRecipient)  registerType(ActionRecipient)

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26