--- OSAS/OSA_system/OSAS_show.py 2004/01/09 12:47:04 1.13 +++ OSAS/OSA_system/OSAS_show.py 2004/01/21 07:43:01 1.14 @@ -100,7 +100,7 @@ class OSAS_StoreOnline(SimpleItem): return [] def rescaleThumbs(self,path): - """rescale thumbs of imeages in path""" + """rescale thumbs of images in path""" os.popen("ssh nausikaa2.rz-berlin.mpg.de /usr/local/mpiwg/scripts/scaleomat.pl %s /mpiwg/temp/online/scaled/thumb 90 --replace >> /tmp/sc.out &"% re.sub('/mpiwg/online/','',self.REQUEST['path'])) @@ -148,21 +148,22 @@ class OSAS_StoreOnline(SimpleItem): return isFolder(self,path) def isScannedDocument(self,path): - """Test ob Eintrag ein Folder ist""" + """Test ob Eintrag ein Scanned Document ist""" return isScannedDocument(self,path) def isFullText(self,path,folder_name): """Test ob Eintrag ein Folder ist""" return isFullText(path,folder_name) + def date(self): + return strftime("%d.%m.%Y",localtime()) + def addFolderForm(self,path): """add a new path""" pt=PageTemplateFile('Products/OSA_system/OSAS_addFolder.zpt').__of__(self) return pt() - def date(self): - return strftime("%d.%m.%Y",localtime()) - + def addFolder(self,path,folder_name,description,archive_creation_date,creator): """add the folder to the filesystem and write the metadata files""" return addFolder.addFolder(self,path,folder_name,description,archive_creation_date,creator) @@ -174,6 +175,7 @@ class OSAS_StoreOnline(SimpleItem): indexmeta=dom.toxml() except: indexmeta="" + self.REQUEST.SESSION['indexmeta']=indexmeta self.REQUEST.SESSION['path']=path newtemplate=PageTemplateFile('Products/OSA_system/editindex').__of__(self) @@ -887,7 +889,7 @@ def getBib(nodelist): return rc+"" def getMetafile(path): - """get index.meta""" + """get index.meta and translate it to an HTML""" html=[] if not os.path.exists(path+"/index.meta"):