--- OSAS/OSA_system/archive.py 2003/10/13 22:24:35 1.2 +++ OSAS/OSA_system/archive.py 2004/03/03 13:02:54 1.9 @@ -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() @@ -137,6 +138,7 @@ class filesystem(Implicit, Persistent, R j[k]=self.node[k] return j + def archive_the_path(self,path): """parse indexmeta and return digilib path""" try: @@ -176,6 +178,7 @@ class filesystem(Implicit, Persistent, R if self.archive_the_path(k): j[k]=self.node[k] return j + security.declarePublic('getImageDirs') def getImageDirs(self,dom,path): dirs=dom.getElementsByTagName("dir") @@ -239,6 +242,7 @@ class filesystem2(Implicit, Persistent, def getfs(self,start): """load filessystem""" + f = os.popen("find "+ start+" -name '*' ","r") lines = f.readlines() @@ -373,6 +377,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 +532,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("/usr/local/mpiwg/archive/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("/usr/local/mpiwg/archive/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 +649,7 @@ def getText(nodelist): def getBib(nodelist): rc= "