| 3 |
|
|
| 4 |
from Products.PACDefault.config import * |
from Products.PACDefault.config import * |
| 5 |
|
|
| 6 |
schema = BaseSchema + Schema(( |
schema = BaseFolderSchema + Schema(( |
| 7 |
|
|
| 8 |
StringField('salutation', |
StringField('salutation', |
| 9 |
vocabulary=AR_SALUTATION_LIST, |
vocabulary=AR_SALUTATION_LIST, |
| 25 |
widget=StringWidget(label='Nick Name'), |
widget=StringWidget(label='Nick Name'), |
| 26 |
searchable=1, |
searchable=1, |
| 27 |
), |
), |
|
# Contact information |
|
|
StringField('phone', |
|
|
widget=StringWidget(label='Phone Number'), |
|
|
), |
|
|
StringField('fax', |
|
|
widget=StringWidget(label='Fax Number'), |
|
|
), |
|
|
StringField('address1', |
|
|
widget=StringWidget(label='Address 1'), |
|
|
), |
|
|
StringField('address2', |
|
|
widget=StringWidget(label='Address 2'), |
|
|
), |
|
|
StringField('city', |
|
|
widget=StringWidget(label='City'), |
|
|
), |
|
|
StringField('state', |
|
|
widget=StringWidget(label='State'), |
|
|
), |
|
|
StringField('zip', |
|
|
widget=StringWidget(label='Zip'), |
|
|
), |
|
| 28 |
# CurrentOffice for politicians |
# CurrentOffice for politicians |
| 29 |
StringField('currentPosition', |
StringField('currentPosition', |
| 30 |
widget=StringWidget(label='Current Position'), |
widget=StringWidget(label='Current Position'), |
| 118 |
schema['title'].mode='r' |
schema['title'].mode='r' |
| 119 |
schema['title'].required=0 |
schema['title'].required=0 |
| 120 |
|
|
| 121 |
class ActionRecipient(TemplateMixin, BaseContent): |
class ActionRecipient(BaseFolder): |
| 122 |
"""Action Recipient (politician|executive|some person) Object""" |
"""Action Recipient (politician|executive|some person) Object""" |
| 123 |
schema = schema |
schema = schema |
| 124 |
archetype_name = "Action Recipient" |
archetype_name = "Action Recipient" |
| 125 |
actions = TemplateMixin.actions |
actions = ( { |
| 126 |
|
'id': 'folder_contents', |
| 127 |
|
'name': 'Folder Contents', |
| 128 |
|
'action': 'folder_contents', |
| 129 |
|
'permissions': (CMFCorePermissions.ModifyPortalContent,) |
| 130 |
|
},) |
| 131 |
|
|
| 132 |
def Title(self): |
def Title(self): |
| 133 |
try: |
try: |