2010-09-02 09:16:08 -05:00
|
|
|
<!codeHeader!>
|
|
|
|
from AccessControl import ClassSecurityInfo
|
|
|
|
from Products.Archetypes.atapi import *
|
|
|
|
import Products.<!applicationName!>.config
|
2010-10-14 07:43:56 -05:00
|
|
|
from appy.gen.plone25.mixins import BaseMixin
|
2010-09-02 09:16:08 -05:00
|
|
|
from Extensions.appyWrappers import <!wrapperClass!>
|
|
|
|
|
|
|
|
schema = Schema((<!fields!>
|
|
|
|
),)
|
|
|
|
fullSchema = BaseSchema.copy() + schema.copy()
|
|
|
|
|
2010-11-30 10:41:18 -06:00
|
|
|
class <!applicationName!>User(BaseMixin, BaseContent):
|
2010-10-14 07:43:56 -05:00
|
|
|
'''User mixin.'''
|
2010-09-02 09:16:08 -05:00
|
|
|
security = ClassSecurityInfo()
|
|
|
|
__implements__ = (getattr(BaseContent,'__implements__',()),)
|
|
|
|
archetype_name = '<!applicationName!>User'
|
|
|
|
meta_type = '<!applicationName!>User'
|
|
|
|
portal_type = '<!applicationName!>User'
|
|
|
|
allowed_content_types = []
|
|
|
|
filter_content_types = 0
|
|
|
|
global_allow = 1
|
|
|
|
immediate_view = 'skyn/view'
|
|
|
|
default_view = 'skyn/view'
|
|
|
|
suppl_views = ()
|
|
|
|
typeDescription = "<!applicationName!>User"
|
|
|
|
typeDescMsgId = '<!applicationName!>User_edit_descr'
|
|
|
|
i18nDomain = '<!applicationName!>'
|
|
|
|
schema = fullSchema
|
|
|
|
wrapperClass = <!wrapperClass!>
|
2010-10-14 07:43:56 -05:00
|
|
|
for elem in dir(BaseMixin):
|
2010-09-02 09:16:08 -05:00
|
|
|
if not elem.startswith('__'): security.declarePublic(elem)
|
|
|
|
<!commonMethods!>
|
|
|
|
<!methods!>
|
|
|
|
registerType(<!applicationName!>User, '<!applicationName!>')
|