2009-06-29 07:06:01 -05:00
|
|
|
<!codeHeader!>
|
|
|
|
from AccessControl import ClassSecurityInfo
|
2009-11-11 13:22:13 -06:00
|
|
|
from DateTime import DateTime
|
2009-06-29 07:06:01 -05:00
|
|
|
from Products.Archetypes.atapi import *
|
|
|
|
import Products.<!applicationName!>.config
|
|
|
|
from appy.gen.plone25.mixins.FlavourMixin import FlavourMixin
|
|
|
|
from Extensions.appyWrappers import <!wrapperClass!>
|
|
|
|
|
|
|
|
schema = Schema((<!fields!>
|
|
|
|
),)
|
2010-08-05 11:23:17 -05:00
|
|
|
fullSchema = OrderedBaseFolderSchema.copy() + schema.copy()
|
2009-06-29 07:06:01 -05:00
|
|
|
|
|
|
|
class <!flavourName!>(OrderedBaseFolder, FlavourMixin):
|
|
|
|
'''Configuration flavour class for <!applicationName!>.'''
|
|
|
|
security = ClassSecurityInfo()
|
|
|
|
__implements__ = (getattr(OrderedBaseFolderSchema,'__implements__',()),)
|
|
|
|
archetype_name = '<!flavourName!>'
|
|
|
|
meta_type = '<!flavourName!>'
|
|
|
|
portal_type = '<!flavourName!>'
|
|
|
|
allowed_content_types = []
|
|
|
|
filter_content_types = 0
|
|
|
|
global_allow = 1
|
|
|
|
#content_icon = '<!flavourName!>.gif'
|
2009-10-18 07:52:27 -05:00
|
|
|
immediate_view = 'skyn/view'
|
|
|
|
default_view = 'skyn/view'
|
2009-06-29 07:06:01 -05:00
|
|
|
suppl_views = ()
|
|
|
|
typeDescription = "<!flavourName!>"
|
|
|
|
typeDescMsgId = '<!flavourName!>_edit_descr'
|
|
|
|
i18nDomain = '<!applicationName!>'
|
|
|
|
schema = fullSchema
|
|
|
|
allMetaTypes = <!metaTypes!>
|
|
|
|
wrapperClass = <!wrapperClass!>
|
2009-08-11 04:01:17 -05:00
|
|
|
for elem in dir(FlavourMixin):
|
|
|
|
if not elem.startswith('__'): security.declarePublic(elem)
|
2009-06-29 07:06:01 -05:00
|
|
|
<!commonMethods!>
|
|
|
|
<!methods!>
|
|
|
|
registerType(<!flavourName!>, '<!applicationName!>')
|