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