version 1.14, 2004/01/21 07:43:01
|
version 1.15, 2004/03/03 13:02:54
|
Line 1
|
Line 1
|
# Classes for displaying, browsing and organizing the archive |
""" Classes for displaying, browsing and organizing the archive |
|
20040303 Needs configuration for rescaling thumbs |
|
|
|
""" |
|
|
import addFolder |
import addFolder |
from OFS.Folder import Folder |
from OFS.Folder import Folder |
Line 22 class OSAS_ShowOnline(SimpleItem):
|
Line 24 class OSAS_ShowOnline(SimpleItem):
|
security.declareProtected('View','index_html') |
security.declareProtected('View','index_html') |
def index_html(self): |
def index_html(self): |
"""main view""" |
"""main view""" |
pt=PageTemplateFile('Products/OSA_system/OSAS_ViewFiles.zpt').__of__(self) |
pt=PageTemplateFile('Products/OSA_system/zpt/OSAS_ViewFiles.zpt').__of__(self) |
return pt() |
return pt() |
|
|
def getfilesystem2(self,start,reload=0): |
def getfilesystem2(self,start,reload=0): |
Line 62 InitializeClass(OSAS_ShowOnline)
|
Line 64 InitializeClass(OSAS_ShowOnline)
|
|
|
def manage_AddOSAS_ShowOnlineForm(self): |
def manage_AddOSAS_ShowOnlineForm(self): |
"""interface for adding the OSAS_root""" |
"""interface for adding the OSAS_root""" |
pt=PageTemplateFile('Products/OSA_system/AddOSAS_ShowOnline.zpt').__of__(self) |
pt=PageTemplateFile('Products/OSA_system/zpt/AddOSAS_ShowOnline.zpt').__of__(self) |
return pt() |
return pt() |
|
|
def manage_AddOSAS_ShowOnline(self,id,RESPONSE=None): |
def manage_AddOSAS_ShowOnline(self,id,RESPONSE=None): |
Line 86 class OSAS_StoreOnline(SimpleItem):
|
Line 88 class OSAS_StoreOnline(SimpleItem):
|
security.declareProtected('View','index_html') |
security.declareProtected('View','index_html') |
def index_html(self): |
def index_html(self): |
"""main view""" |
"""main view""" |
pt=PageTemplateFile('Products/OSA_system/OSAS_StoreFiles.zpt').__of__(self) |
pt=PageTemplateFile('Products/OSA_system/zpt/OSAS_StoreFiles.zpt').__of__(self) |
return pt() |
return pt() |
|
|
def readContexts(self,path): |
def readContexts(self,path): |
Line 106 class OSAS_StoreOnline(SimpleItem):
|
Line 108 class OSAS_StoreOnline(SimpleItem):
|
|
|
self.REQUEST.SESSION['path']=self.REQUEST['path'] |
self.REQUEST.SESSION['path']=self.REQUEST['path'] |
#return self.REQUEST.RESPONSE.redirect(self.REQUEST['URL1']) |
#return self.REQUEST.RESPONSE.redirect(self.REQUEST['URL1']) |
pt=PageTemplateFile('Products/OSA_system/OSAS_scaled.zpt').__of__(self) |
pt=PageTemplateFile('Products/OSA_system/zpt/OSAS_scaled.zpt').__of__(self) |
return pt() |
return pt() |
|
|
|
|
Line 160 class OSAS_StoreOnline(SimpleItem):
|
Line 162 class OSAS_StoreOnline(SimpleItem):
|
|
|
def addFolderForm(self,path): |
def addFolderForm(self,path): |
"""add a new path""" |
"""add a new path""" |
pt=PageTemplateFile('Products/OSA_system/OSAS_addFolder.zpt').__of__(self) |
pt=PageTemplateFile('Products/OSA_system/zpt/OSAS_addFolder.zpt').__of__(self) |
return pt() |
return pt() |
|
|
|
|
Line 178 class OSAS_StoreOnline(SimpleItem):
|
Line 180 class OSAS_StoreOnline(SimpleItem):
|
|
|
self.REQUEST.SESSION['indexmeta']=indexmeta |
self.REQUEST.SESSION['indexmeta']=indexmeta |
self.REQUEST.SESSION['path']=path |
self.REQUEST.SESSION['path']=path |
newtemplate=PageTemplateFile('Products/OSA_system/editindex').__of__(self) |
newtemplate=PageTemplateFile('Products/OSA_system/zpt/editindex').__of__(self) |
return newtemplate() |
return newtemplate() |
|
|
def EditIndex2(self): |
def EditIndex2(self): |
Line 199 class OSAS_StoreOnline(SimpleItem):
|
Line 201 class OSAS_StoreOnline(SimpleItem):
|
|
|
def add_metafile(self): |
def add_metafile(self): |
"""nothing""" |
"""nothing""" |
pt=PageTemplateFile('Products/OSA_system/OSAS_addmetadata.zpt').__of__(self) |
pt=PageTemplateFile('Products/OSA_system/zpt/OSAS_addmetadata.zpt').__of__(self) |
return pt() |
return pt() |
|
|
InitializeClass(OSAS_StoreOnline) |
InitializeClass(OSAS_StoreOnline) |
|
|
def manage_AddOSAS_StoreOnlineForm(self): |
def manage_AddOSAS_StoreOnlineForm(self): |
"""interface for adding the OSAS_root""" |
"""interface for adding the OSAS_root""" |
pt=PageTemplateFile('Products/OSA_system/AddOSAS_StoreOnline.zpt').__of__(self) |
pt=PageTemplateFile('Products/OSA_system/zpt/AddOSAS_StoreOnline.zpt').__of__(self) |
return pt() |
return pt() |
|
|
def manage_AddOSAS_StoreOnline(self,id,RESPONSE=None): |
def manage_AddOSAS_StoreOnline(self,id,RESPONSE=None): |