import AccessControl import OFS, Globals from OFS import SimpleItem import types from TraversableWrapper import Traversable from Globals import Persistent from AccessControl import ClassSecurityInfo from Cruft import Cruft class Kiri( OFS.SimpleItem.Item, Persistent, AccessControl.Role.RoleManager, Traversable, Cruft ): "Kirja andmed" def __init__(self, pealkiri, sisu): "Kirja loomine" self.pealkiri=pealkiri self.sisu=sisu def index_html(self, REQUEST): "Kirja näitamine" t=self.hdr(self, REQUEST) t=t+"