""" Container for Answers """ __version__ = "$Revision$"[11:-2] import Globals from Globals import Acquisition, Persistent from Acquisition import aq_base, aq_inner, aq_parent, Explicit from AccessControl import ClassSecurityInfo from Products.BTreeFolder2.BTreeFolder2 import BTreeFolder2 from zope.interface import implements from common import commons from Permissions import * from interfaces import IAnswers class Answers(BTreeFolder2, Persistent, Explicit, commons): """ container class for answers """ meta_type = 'Answers' security = ClassSecurityInfo() security.declareObjectPublic() implements(IAnswers) manage_options = BTreeFolder2.manage_options id = 'answers' def __init__(self): BTreeFolder2.__init__(self, self.id) def setupTokenFolder(self, folder_id, token, test_id, group_id): """ """ from AnswerContainer import AnswerContainer a=AnswerContainer(folder_id, token, test_id, group_id) from random import choice import string chars = string.letters + string.digits self._setObject(folder_id, a) Globals.InitializeClass(Answers) #EOF