# -*- coding: utf-8 # Copyright 2005 by Meelis Mets from Products.Archetypes.public import BaseSchema, Schema from Products.Archetypes.public import StringField, LinesField from Products.Archetypes.public import LinesWidget, TextAreaWidget, IdWidget, StringWidget, SelectionWidget from Products.Archetypes.public import BaseContent, registerType from Globals import InitializeClass from Products.CMFCore.utils import getToolByName from Permissions import * from AccessControl import ClassSecurityInfo, Unauthorized from config import PROJECT_NAME schema = BaseSchema + Schema(( #StringField('title', # required=1, # searchable=1, # isMetadata=1, # default='', # accessor='getTitle', # widget=StringWidget( # label_msgid='label_title', # description_msgid='help_title', # i18n_domain="krihvel"), # ), )) class Exhibition(BaseContent): """ Template tasks. """ meta_type = "Exhibition" archetype_name = "Exhibition" global_allow = 1 allowed_content_types = [] security = ClassSecurityInfo() _at_rename_after_creation = True content_icon='exhibition_icon.gif' schema = schema actions = ( { 'id':'view', 'name':'View', 'action':'string:${object_url}/base_view', 'permissions': ('Manage portal',), }, ) registerType(Exhibition, PROJECT_NAME)