# -*- 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, MODULE_LIST schema = BaseSchema class BaseAnswer(BaseContent): """ Template answers. """ meta_type = "BaseAnswer" archetype_name = "BaseAnswer" global_allow = 0 allowed_content_types = [] security = ClassSecurityInfo() content_icon='vastus.gif' schema = schema def getClasses(self): """ Classes massive """ classes = ['I','II'] return classes def getRemoteUrl(self): return self.absolute_url() registerType(BaseAnswer, PROJECT_NAME)