2009-06-29 07:06:01 -05:00
|
|
|
<!codeHeader!>
|
|
|
|
from AccessControl import ClassSecurityInfo
|
|
|
|
from Products.Archetypes.atapi import *
|
|
|
|
import Products.<!applicationName!>.config
|
|
|
|
from appy.gen.plone25.mixins.PodTemplateMixin import PodTemplateMixin
|
|
|
|
from Extensions.appyWrappers import <!wrapperClass!>
|
|
|
|
|
|
|
|
schema = Schema((<!fields!>
|
|
|
|
),)
|
|
|
|
fullSchema = BaseSchema.copy() + schema.copy()
|
|
|
|
|
|
|
|
class <!applicationName!>PodTemplate(BaseContent, PodTemplateMixin):
|
|
|
|
'''POD template.'''
|
|
|
|
security = ClassSecurityInfo()
|
|
|
|
__implements__ = (getattr(BaseContent,'__implements__',()),)
|
|
|
|
|
|
|
|
archetype_name = '<!applicationName!>PodTemplate'
|
|
|
|
meta_type = '<!applicationName!>PodTemplate'
|
|
|
|
portal_type = '<!applicationName!>PodTemplate'
|
|
|
|
allowed_content_types = []
|
|
|
|
filter_content_types = 0
|
|
|
|
global_allow = 1
|
|
|
|
#content_icon = '<!applicationName!>PodTemplate.gif'
|
|
|
|
immediate_view = '<!applicationName!>_appy_view'
|
|
|
|
default_view = '<!applicationName!>_appy_view'
|
|
|
|
suppl_views = ()
|
|
|
|
typeDescription = "<!applicationName!>PodTemplate"
|
|
|
|
typeDescMsgId = '<!applicationName!>_edit_descr'
|
|
|
|
_at_rename_after_creation = True
|
|
|
|
wrapperClass = <!wrapperClass!>
|
|
|
|
schema = fullSchema
|
2009-08-11 04:01:17 -05:00
|
|
|
for elem in dir(PodTemplateMixin):
|
|
|
|
if not elem.startswith('__'): security.declarePublic(elem)
|
2009-06-29 07:06:01 -05:00
|
|
|
<!commonMethods!>
|
|
|
|
<!methods!>
|
|
|
|
registerType(<!applicationName!>PodTemplate, '<!applicationName!>')
|