--- OSAS/OSA_system/archive.py 2003/12/18 17:22:29 1.3 +++ OSAS/OSA_system/archive.py 2004/01/09 12:47:05 1.6 @@ -75,6 +75,7 @@ class filesystem(Implicit, Persistent, R def getfs(self,start): """load filessystem""" + f = os.popen("find "+ start+" -name '*' ","r") lines = f.readlines() @@ -239,6 +240,7 @@ class filesystem2(Implicit, Persistent, def getfs(self,start): """load filessystem""" + f = os.popen("find "+ start+" -name '*' ","r") lines = f.readlines() @@ -373,6 +375,7 @@ class browse(Implicit, Persistent, RoleM def getfs(start): """return filesystem""" + f = os.popen("find "+ start+" -name '*'","r") lines = f.readlines() return lines @@ -527,16 +530,17 @@ class metacheck(Implicit, Persistent, Ro return [retstr,error] else: return ['','running'] + def __init__(self,path): """archive the documents in path""" self.lines=[] if type(path)==StringType: - f = os.popen("/Users/dwinter/metacheck "+path,"r") + f = os.popen("/usr/local/mpiwg/archive/metacheck "+path,"r") self.lines.append(Error([path,self.parsearchive(f.readlines())])) else: for singlepath in path: - f = os.popen("/Users/dwinter/metacheck "+singlepath,"r") + f = os.popen("/usr/local/mpiwg/archive/metacheck "+singlepath,"r") self.lines.append(Error([singlepath,self.parsearchive(f.readlines())])) security.declarePublic('messages') @@ -643,7 +647,7 @@ def getText(nodelist): def getBib(nodelist): rc= "" - print "HI" + for node in nodelist: if node.nodeType == node.ELEMENT_NODE: @@ -686,7 +690,7 @@ def getMetafile(path): else: html=html+"

Info

" html=html+getBib(bib.childNodes) - print html + #print html except: """none""" @@ -950,7 +954,7 @@ def EditIndex2(self): if not self.REQUEST.has_key('fileupload'): #newtext=urllib.unquote(self.REQUEST['indexmeta']) newtext=self.REQUEST['indexmeta'] - print newtext + #print newtext else: self.file_name=self.REQUEST['fileupload'].filename #newtext=self.REQUEST.form['fileupload'].read()