Diff for /OSAS/OSA_system/archive.py between versions 1.3 and 1.6

version 1.3, 2003/12/18 17:22:29 version 1.6, 2004/01/09 12:47:05
Line 75  class filesystem(Implicit, Persistent, R Line 75  class filesystem(Implicit, Persistent, R
             
       def getfs(self,start):        def getfs(self,start):
         """load filessystem"""          """load filessystem"""
           
         f = os.popen("find "+ start+" -name '*' ","r")          f = os.popen("find "+ start+" -name '*' ","r")
     lines = f.readlines()      lines = f.readlines()
           
Line 239  class filesystem2(Implicit, Persistent, Line 240  class filesystem2(Implicit, Persistent,
             
       def getfs(self,start):        def getfs(self,start):
         """load filessystem"""          """load filessystem"""
           
         f = os.popen("find "+ start+" -name '*' ","r")          f = os.popen("find "+ start+" -name '*' ","r")
     lines = f.readlines()      lines = f.readlines()
           
Line 373  class browse(Implicit, Persistent, RoleM Line 375  class browse(Implicit, Persistent, RoleM
               
 def getfs(start):  def getfs(start):
     """return filesystem"""      """return filesystem"""
           
         f = os.popen("find "+ start+" -name '*'","r")          f = os.popen("find "+ start+" -name '*'","r")
     lines = f.readlines()      lines = f.readlines()
         return lines          return lines
Line 527  class metacheck(Implicit, Persistent, Ro Line 530  class metacheck(Implicit, Persistent, Ro
                       return [retstr,error]                        return [retstr,error]
                 else:                  else:
                       return ['','running']                        return ['','running']
                   
     def __init__(self,path):      def __init__(self,path):
         """archive the documents in path"""          """archive the documents in path"""
             self.lines=[]              self.lines=[]
                   
             if type(path)==StringType:              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())]))                  self.lines.append(Error([path,self.parsearchive(f.readlines())]))
         else:          else:
                 for singlepath in path:                  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())]))                      self.lines.append(Error([singlepath,self.parsearchive(f.readlines())]))
         security.declarePublic('messages')          security.declarePublic('messages')
           
Line 643  def getText(nodelist): Line 647  def getText(nodelist):
   
 def getBib(nodelist):  def getBib(nodelist):
     rc= "<table border='0'>"      rc= "<table border='0'>"
     print "HI"      
     for node in nodelist:      for node in nodelist:
                   
         if node.nodeType == node.ELEMENT_NODE:          if node.nodeType == node.ELEMENT_NODE:
Line 686  def getMetafile(path): Line 690  def getMetafile(path):
     else:      else:
       html=html+"<h4>Info</h4>"        html=html+"<h4>Info</h4>"
         html=html+getBib(bib.childNodes)          html=html+getBib(bib.childNodes)
         print html          #print html
        except:         except:
         """none"""          """none"""
                 
Line 950  def EditIndex2(self): Line 954  def EditIndex2(self):
       if not self.REQUEST.has_key('fileupload'):        if not self.REQUEST.has_key('fileupload'):
             #newtext=urllib.unquote(self.REQUEST['indexmeta'])              #newtext=urllib.unquote(self.REQUEST['indexmeta'])
             newtext=self.REQUEST['indexmeta']              newtext=self.REQUEST['indexmeta']
             print newtext              #print newtext
       else:        else:
             self.file_name=self.REQUEST['fileupload'].filename              self.file_name=self.REQUEST['fileupload'].filename
             #newtext=self.REQUEST.form['fileupload'].read()              #newtext=self.REQUEST.form['fileupload'].read()

Removed from v.1.3  
changed lines
  Added in v.1.6


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>