3 |
|
|
4 |
from Products.PACDefault.config import * |
from Products.PACDefault.config import * |
5 |
|
|
6 |
schema = BaseSchema + Schema(( |
# Make this a folder so we can toss in some talking points |
7 |
|
schema = BaseFolderSchema + Schema(( |
8 |
|
|
9 |
TextField('instructions', |
TextField('instructions', |
10 |
widget=RichWidget(label='Instructions'), |
widget=RichWidget(label='Instructions'), |
12 |
|
|
13 |
)) + TemplateMixin.schema |
)) + TemplateMixin.schema |
14 |
|
|
15 |
class ActionPhone(TemplateMixin, BaseContent): |
class ActionPhone(BaseFolder): |
16 |
"""Phone Action""" |
"""Phone Action""" |
|
schema = schema |
|
17 |
archetype_name = "Action (Phone)" |
archetype_name = "Action (Phone)" |
18 |
actions = TemplateMixin.actions |
schema = schema |
19 |
|
actions = ( { |
20 |
|
'id': 'folder_contents', |
21 |
|
'name': 'Action Contents', |
22 |
|
'action': 'folder_contents', |
23 |
|
'permissions': (CMFCorePermissions.ModifyPortalContent,) |
24 |
|
},) |
25 |
|
|
26 |
registerType(ActionPhone) |
registerType(ActionPhone) |