2 |
|
|
3 |
from Products.Archetypes.public import * |
from Products.Archetypes.public import * |
4 |
from Products.Archetypes.TemplateMixin import TemplateMixin |
from Products.Archetypes.TemplateMixin import TemplateMixin |
|
from Products.Archetypes.SQLStorage import PostgreSQLStorage |
|
5 |
|
|
6 |
from Products.PACDefault.config import * |
from Products.PACDefault.config import * |
7 |
|
|
21 |
widget=MultiSelectionWidget(label='Participating Countries', |
widget=MultiSelectionWidget(label='Participating Countries', |
22 |
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"), |
23 |
vocabulary='getCountries', |
vocabulary='getCountries', |
|
storage=PostgreSQLStorage(), |
|
24 |
), |
), |
25 |
LinesField('usState', |
LinesField('usState', |
26 |
widget=MultiSelectionWidget(label='Participating US States', |
widget=MultiSelectionWidget(label='Participating US States', |
27 |
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"), |
28 |
vocabulary='getUSStates', |
vocabulary='getUSStates', |
|
storage=PostgreSQLStorage(), |
|
29 |
), |
), |
30 |
LinesField('politicalParty', |
LinesField('politicalParty', |
31 |
widget=MultiSelectionWidget(label='Political party', |
widget=MultiSelectionWidget(label='Political party', |
32 |
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."), |
33 |
vocabulary='getPoliticalParties', |
vocabulary='getPoliticalParties', |
|
storage=PostgreSQLStorage(), |
|
34 |
), |
), |
35 |
StringField('currentOffice', |
StringField('currentOffice', |
36 |
widget=StringWidget(label='Current Office', |
widget=StringWidget(label='Current Office', |
37 |
description="To restrict this action to a perticular office or position."), |
description="To restrict this action to a perticular office or position."), |
|
storage=PostgreSQLStorage(), |
|
38 |
), |
), |
39 |
################################### |
################################### |
40 |
|
|
43 |
LinesField('actionRecipients', |
LinesField('actionRecipients', |
44 |
widget=LinesWidget(label='Action Recipients', |
widget=LinesWidget(label='Action Recipients', |
45 |
macro_edit='pac_widgets/actionrecipients_chooser',), |
macro_edit='pac_widgets/actionrecipients_chooser',), |
|
storage=PostgreSQLStorage(), |
|
46 |
schemata='recipients', |
schemata='recipients', |
47 |
), |
), |
48 |
################################### |
################################### |