# -*- coding: utf-8 # Copyright 2005 by Meelis Mets from Products.Archetypes.public import BaseSchema, Schema from Products.Archetypes.public import StringField, LinesField, TextField from Products.Archetypes.public import LinesWidget, TextAreaWidget, StringWidget, SelectionWidget, MultiSelectionWidget from Products.Archetypes.public import BaseFolder, BaseContent, registerType from Globals import InitializeClass from Products.CMFCore.utils import getToolByName from BaseFunctions import BaseFunctions from Permissions import * from AccessControl import ClassSecurityInfo, Unauthorized from config import PROJECT_NAME schema = BaseSchema + Schema(( )) class Help(BaseFolder, BaseFunctions): """ Help """ meta_type = "Help" archetype_name = "Help" global_allow = 0 allowed_content_types = ('Document',) security = ClassSecurityInfo() content_icon='exhibition_icon.gif' schema = schema actions = ( { 'id':'view', 'name':'View', 'action':'string:${object_url}/help_view', 'permissions': ('View',), }, ) registerType(Help, PROJECT_NAME)