version 1.6, 2004/01/09 12:47:05
|
version 1.10, 2005/03/14 11:11:56
|
Line 138 class filesystem(Implicit, Persistent, R
|
Line 138 class filesystem(Implicit, Persistent, R
|
j[k]=self.node[k] |
j[k]=self.node[k] |
return j |
return j |
|
|
|
|
def archive_the_path(self,path): |
def archive_the_path(self,path): |
"""parse indexmeta and return digilib path""" |
"""parse indexmeta and return digilib path""" |
try: |
try: |
Line 177 class filesystem(Implicit, Persistent, R
|
Line 178 class filesystem(Implicit, Persistent, R
|
if self.archive_the_path(k): |
if self.archive_the_path(k): |
j[k]=self.node[k] |
j[k]=self.node[k] |
return j |
return j |
|
|
security.declarePublic('getImageDirs') |
security.declarePublic('getImageDirs') |
def getImageDirs(self,dom,path): |
def getImageDirs(self,dom,path): |
dirs=dom.getElementsByTagName("dir") |
dirs=dom.getElementsByTagName("dir") |
Line 581 class archive(Implicit, Persistent, Role
|
Line 583 class archive(Implicit, Persistent, Role
|
|
|
if type(path)==StringType: |
if type(path)==StringType: |
self.filenames[path]=tempfile.mktemp() |
self.filenames[path]=tempfile.mktemp() |
f = os.popen("/usr/local/mpiwg/archive/archiver "+path+" > "+self.filenames[path]+" &","r") |
f = os.popen("/usr/local/mpiwg/archive/archiver "+path+" -premigrate > "+self.filenames[path]+" &","r") |
else: |
else: |
for singlepath in path: |
for singlepath in path: |
self.filenames[singlepath]=tempfile.mktemp() |
self.filenames[singlepath]=tempfile.mktemp() |
f = os.popen("/usr/local/mpiwg/archive/archiver "+singlepath+" > "+self.filenames[singlepath]+" &","r") |
f = os.popen("/usr/local/mpiwg/archive/archiver "+singlepath+" -premigrate > "+self.filenames[singlepath]+" &","r") |
|
|
security.declarePublic('messages') |
security.declarePublic('messages') |
def messages(self): |
def messages(self): |
Line 869 class overview(Implicit,Persistent, Role
|
Line 871 class overview(Implicit,Persistent, Role
|
if not len(str)==0: |
if not len(str)==0: |
for line in str: |
for line in str: |
retstr=retstr+line+"<br>" |
retstr=retstr+line+"<br>" |
check=re.search(r"(.*):(.*)",line) |
check=line.split(":") |
if check.group(1)=='ABORT': |
#re.search(r"(.*):(.*)",line) |
|
if check[0]=='ABORT': |
error="error" |
error="error" |
elif check.group(1)=='DONE': |
elif check[0]=='DONE': |
error="ok" |
error="ok" |
else: |
else: |
error="running" |
error="running" |
Line 947 def EditIndex(self,path):
|
Line 950 def EditIndex(self,path):
|
indexmeta="" |
indexmeta="" |
self.REQUEST.SESSION['indexmeta']=indexmeta |
self.REQUEST.SESSION['indexmeta']=indexmeta |
self.REQUEST.SESSION['path']=path |
self.REQUEST.SESSION['path']=path |
newtemplate=PageTemplateFile('/usr/local/mpiwg/Zope/Extensions/editindex').__of__(self) |
newtemplate=PageTemplateFile('Products/OSA_system/zpt/editindex').__of__(self) |
return newtemplate() |
return newtemplate() |
|
|
def EditIndex2(self): |
def EditIndex2(self): |