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

Diff of /pac/PACDefault/PublicAction.py

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

revision 1.16 by tvon, Fri Oct 3 17:18:29 2003 UTC revision 1.17 by tvon, Fri Oct 3 21:45:44 2003 UTC
# Line 1  Line 1 
1  # $Id$  # $Id$
2  from Products.Archetypes.public import *  from Products.Archetypes.public import *
3  from Products.Archetypes.TemplateMixin import TemplateMixin  from Products.Archetypes.TemplateMixin import TemplateMixin
 from Products.Archetypes.SQLStorage import PostgreSQLStorage  
4    
5  from Products.PACDefault.config import *  from Products.PACDefault.config import *
6    
# Line 28  schema = BaseFolderSchema +  Schema(( Line 27  schema = BaseFolderSchema +  Schema((
27                                  'text/plain',                                  'text/plain',
28                                  'text/html'),                                  'text/html'),
29          widget=RichWidget(label="Action Summary"),          widget=RichWidget(label="Action Summary"),
         storage=PostgreSQLStorage(),  
30          ),          ),
31      ###################################      ###################################
32    
33      ###################################      ###################################
34      # Action Scope      # Action Scope
35    
     # I'd like to just call this 'countries' but that seems to cause issues  
     # with PostgreSQL  
36      LinesField('country',      LinesField('country',
37          widget=MultiSelectionWidget(label='Participating Countries',          widget=MultiSelectionWidget(label='Participating Countries',
38              description="If the Uninted States is one of the countries, select the states that will be involved in this action"),              description="If the Uninted States is one of the countries, select the states that will be involved in this action"),
39          vocabulary='getCountries',          vocabulary='getCountries',
         storage=PostgreSQLStorage(),  
40          schemata="scope",          schemata="scope",
41          ),          ),
42    
# Line 49  schema = BaseFolderSchema +  Schema(( Line 44  schema = BaseFolderSchema +  Schema((
44          widget=MultiSelectionWidget(label='Participating US States',          widget=MultiSelectionWidget(label='Participating US States',
45              description="If the Uninted States is one of the countries, select the states that will be involved in this action"),              description="If the Uninted States is one of the countries, select the states that will be involved in this action"),
46          vocabulary='getUSStates',          vocabulary='getUSStates',
         storage=PostgreSQLStorage(),  
47          schemata="scope",          schemata="scope",
48          ),          ),
49      LinesField('politicalParty',      LinesField('politicalParty',
50          widget=MultiSelectionWidget(label='Political party',          widget=MultiSelectionWidget(label='Political party',
51              description="To restrict this action to a perticular political party, select it here."),              description="To restrict this action to a perticular political party, select it here."),
52          vocabulary='getPoliticalParties',          vocabulary='getPoliticalParties',
         storage=PostgreSQLStorage(),  
53          schemata="scope",          schemata="scope",
54          ),          ),
55      ###################################      ###################################
# Line 67  schema = BaseFolderSchema +  Schema(( Line 60  schema = BaseFolderSchema +  Schema((
60          widget=MultiSelectionWidget(label='Allowed Actions',          widget=MultiSelectionWidget(label='Allowed Actions',
61              description="What actions should the users be allowed to participate in."),              description="What actions should the users be allowed to participate in."),
62          vocabulary='getAvailableActions',          vocabulary='getAvailableActions',
         storage=PostgreSQLStorage(),  
63          schemata="actions",          schemata="actions",
64          ),          ),
65      ###################################      ###################################

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

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