--- OSAS/OSA_system/OSAS_Root.py 2004/03/03 13:02:54 1.4 +++ OSAS/OSA_system/OSAS_Root.py 2004/03/25 09:57:47 1.5 @@ -6,11 +6,12 @@ from Products.PageTemplates.PageTemplate class OSAS_Root(Folder,Implicit): """Implicit Folder of the Storage Systems""" - def __init__(self,id,RootFolderName): + def __init__(self,id,RootFolderName,DigILibURL): """initialize a new instance""" self.id = id self.RootFolderName = RootFolderName - + self.DigILibURL=DigILibURL + meta_type="OSAS_Root" manage_options = Folder.manage_options+( @@ -22,9 +23,11 @@ class OSAS_Root(Folder,Implicit): pt=PageTemplateFile('Products/OSA_system/zpt/ConfigOSAS_Root.zpt').__of__(self) return pt() - def change_OSAS_Root(self,RootFolderName,RESPONSE=None): + def change_OSAS_Root(self,RootFolderName,DigILibURL,RESPONSE=None): """Change RootFolderName""" self.RootFolderName=RootFolderName + self.DigILibURL=DigILibURL + if RESPONSE is not None: RESPONSE.redirect('manage_main') @@ -37,9 +40,9 @@ def manage_AddOSAS_RootForm(self): pt=PageTemplateFile('Products/OSA_system/zpt/AddOSAS_Root.zpt').__of__(self) return pt() -def manage_AddOSAS_Root(self,id,RootFolderName,RESPONSE=None): +def manage_AddOSAS_Root(self,id,RootFolderName,DigILibURL,RESPONSE=None): """add the OSAS_root""" - newObj=OSAS_Root(id,RootFolderName) + newObj=OSAS_Root(id,RootFolderName,DigILibURL) self._setObject(id,newObj) if RESPONSE is not None: RESPONSE.redirect('manage_main')