Diff for /OSA_system2/OSAS_browser.py between versions 1.4 and 1.6

version 1.4, 2004/12/23 12:38:22 version 1.6, 2004/12/23 16:31:22
Line 129  class OSAS_storeOnline(SimpleItem): Line 129  class OSAS_storeOnline(SimpleItem):
         stats=os.stat(indexMeta)          stats=os.stat(indexMeta)
   
         #teste ob schon im cache          #teste ob schon im cache
         if self._v_metaFiles.has_key(indexMeta) and (self._v_metaFiles[indexMeta][0]==stats[stat.ST_MTIME]):          if self._v_metaFiles.has_key(path) and (self._v_metaFiles[path][0]==stats[stat.ST_MTIME]):
                           #print "cache",path
             return self._v_metaFiles[indexMeta][1]              return self._v_metaFiles[path][1]
   
         dom=xml.dom.minidom.parse(indexMeta)          dom=xml.dom.minidom.parse(indexMeta)
   
Line 150  class OSAS_storeOnline(SimpleItem): Line 150  class OSAS_storeOnline(SimpleItem):
             else:              else:
                 name=""                  name=""
   
                       #print "PP",pathX,path
             if pathX==path:              if pathX==path:
                 if dir.tagName=="dir":                  if dir.tagName=="dir":
                     fileType="OSAS_dir_archive"                      fileType="OSAS_dir_archive"
Line 160  class OSAS_storeOnline(SimpleItem): Line 160  class OSAS_storeOnline(SimpleItem):
                 object=os.path.join(realPath,pathX,name)                  object=os.path.join(realPath,pathX,name)
                 ret[object]=(fileType,'')                  ret[object]=(fileType,'')
   
         self._v_metaFiles[indexMeta]=(stats[stat.ST_MTIME],ret) # speicher im chache          self._v_metaFiles[path]=(stats[stat.ST_MTIME],ret) # speicher im chache
         return ret          return ret
   
                   
Line 225  class OSAS_storeOnline(SimpleItem): Line 225  class OSAS_storeOnline(SimpleItem):
                   
         for handler in self.ZopeFind(self.aq_parent,obj_metatypes=['OSAS_HandlerObject__neu'],search_sub=1):          for handler in self.ZopeFind(self.aq_parent,obj_metatypes=['OSAS_HandlerObject__neu'],search_sub=1):
             if type in handler[1].objectTypes:              if type in handler[1].objectTypes:
           try:
                 path=path.replace(getattr(handler[1],'ignorePath',''),'')                  path=path.replace(getattr(handler[1],'ignorePath',''),'')
                   except:
              pass
                 url=handler[1].prefix%path                  url=handler[1].prefix%path
                 text=handler[1].title                  text=handler[1].title
                 string="""<a target="_blank" href="%s">%s</a>"""%(url,text)                  string="""<a target="_blank" href="%s">%s</a>"""%(url,text)

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


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