--- zogiLib/zogiLib.py 2004/11/15 19:53:35 1.53 +++ zogiLib/zogiLib.py 2005/04/28 17:26:49 1.55 @@ -2,7 +2,7 @@ from Products.PageTemplates.PageTemplate from Products.PageTemplates.PageTemplate import PageTemplate from Products.PageTemplates.ZopePageTemplate import ZopePageTemplate from OFS.Image import Image - +from AccessControl import ClassSecurityInfo import xml.dom.minidom from OFS.Folder import Folder from xml_helpers import getUniqueElementText,getText @@ -14,7 +14,7 @@ import types import random from Globals import package_home -ZOGIVERSION = "0.9.14b ROC:15.11.2004" +ZOGIVERSION = "0.9.15b DW:22.2.2005" def cropf(f): """returns a float with reduced precision""" @@ -137,7 +137,8 @@ class zogiLib(Folder): meta_type="zogiLib" #xxxx - + security=ClassSecurityInfo() + manage_options = Folder.manage_options+( {'label':'Main Config','action':'changeZogiLibForm'}, ) @@ -157,7 +158,11 @@ class zogiLib(Folder): else: self.dlToolbarBaseURL = dlServerURL + "/digimage.jsp?" - + security.declareProtected('View','getLayout') + def getLayout(self): + """get Layout""" + return self.layout + def version(self): """version information""" return ZOGIVERSION @@ -370,7 +375,7 @@ class zogiLib(Folder): if bt['isN4']: f = 'zpt/zogilib_divsN4.zpt' else: - f = 'zpt/zogilib_divs.zpt' + f = 'zpt/zogiLib_divs.zpt' pt=PageTemplateFile(os.path.join(package_home(globals()),f)).__of__(self) return pt()