| 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 |
|
|
| 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 |
|
|
| 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 |
################################### |
################################### |
| 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 |
################################### |
################################### |