appypod-rattail/gen/plone25/templates/Class.py

40 lines
1.2 KiB
Python
Raw Normal View History

2009-06-29 07:06:01 -05:00
<!codeHeader!>
from AccessControl import ClassSecurityInfo
from DateTime import DateTime
2009-06-29 07:06:01 -05:00
from Products.Archetypes.atapi import *
import Products.<!applicationName!>.config
from Products.CMFCore.utils import UniqueObject
from appy.gen.plone25.mixins import BaseMixin
from appy.gen.plone25.mixins.ToolMixin import ToolMixin
from Extensions.appyWrappers import <!genClassName!>_Wrapper
2009-06-29 07:06:01 -05:00
<!imports!>
schema = Schema((<!fields!>
),)
fullSchema = <!baseSchema!>.copy() + schema.copy()
class <!genClassName!>(<!parents!>):
'''<!classDoc!>'''
security = ClassSecurityInfo()
__implements__ = <!implements!>
archetype_name = '<!genClassName!>'
meta_type = '<!genClassName!>'
portal_type = '<!genClassName!>'
allowed_content_types = ()
2009-06-29 07:06:01 -05:00
filter_content_types = 0
global_allow = <!global_allow!>
immediate_view = 'skyn/view'
default_view = 'skyn/view'
2009-06-29 07:06:01 -05:00
suppl_views = ()
typeDescription = '<!genClassName!>'
typeDescMsgId = '<!genClassName!>'
2009-06-29 07:06:01 -05:00
i18nDomain = '<!applicationName!>'
wrapperClass = <!genClassName!>_Wrapper
schema = fullSchema
for elem in dir(<!baseMixin!>):
if not elem.startswith('__'): security.declarePublic(elem)
<!static!>
2009-06-29 07:06:01 -05:00
<!commonMethods!>
<!methods!>
<!register!>