version 1.3, 2003/10/09 08:04:26
|
version 1.5, 2004/03/25 09:57:47
|
Line 6 from Products.PageTemplates.PageTemplate
|
Line 6 from Products.PageTemplates.PageTemplate
|
|
|
class OSAS_Root(Folder,Implicit): |
class OSAS_Root(Folder,Implicit): |
"""Implicit Folder of the Storage Systems""" |
"""Implicit Folder of the Storage Systems""" |
def __init__(self,id,RootFolderName): |
def __init__(self,id,RootFolderName,DigILibURL): |
"""initialize a new instance""" |
"""initialize a new instance""" |
self.id = id |
self.id = id |
self.RootFolderName = RootFolderName |
self.RootFolderName = RootFolderName |
|
self.DigILibURL=DigILibURL |
|
|
meta_type="OSAS_Root" |
meta_type="OSAS_Root" |
|
|
Line 19 class OSAS_Root(Folder,Implicit):
|
Line 20 class OSAS_Root(Folder,Implicit):
|
|
|
def Root_config(self): |
def Root_config(self): |
"""Main configuration""" |
"""Main configuration""" |
pt=PageTemplateFile('Products/OSA_system/ConfigOSAS_Root.zpt').__of__(self) |
pt=PageTemplateFile('Products/OSA_system/zpt/ConfigOSAS_Root.zpt').__of__(self) |
return pt() |
return pt() |
|
|
def change_OSAS_Root(self,RootFolderName,RESPONSE=None): |
def change_OSAS_Root(self,RootFolderName,DigILibURL,RESPONSE=None): |
"""Change RootFolderName""" |
"""Change RootFolderName""" |
self.RootFolderName=RootFolderName |
self.RootFolderName=RootFolderName |
|
self.DigILibURL=DigILibURL |
|
|
if RESPONSE is not None: |
if RESPONSE is not None: |
RESPONSE.redirect('manage_main') |
RESPONSE.redirect('manage_main') |
|
|
Line 34 class OSAS_Root(Folder,Implicit):
|
Line 37 class OSAS_Root(Folder,Implicit):
|
|
|
def manage_AddOSAS_RootForm(self): |
def manage_AddOSAS_RootForm(self): |
"""interface for adding the OSAS_root""" |
"""interface for adding the OSAS_root""" |
pt=PageTemplateFile('Products/OSA_system/AddOSAS_Root.zpt').__of__(self) |
pt=PageTemplateFile('Products/OSA_system/zpt/AddOSAS_Root.zpt').__of__(self) |
return pt() |
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""" |
"""add the OSAS_root""" |
newObj=OSAS_Root(id,RootFolderName) |
newObj=OSAS_Root(id,RootFolderName,DigILibURL) |
self._setObject(id,newObj) |
self._setObject(id,newObj) |
if RESPONSE is not None: |
if RESPONSE is not None: |
RESPONSE.redirect('manage_main') |
RESPONSE.redirect('manage_main') |