--- OSA_system2/OSAS_browser.py 2005/03/17 19:26:51 1.17 +++ OSA_system2/OSAS_browser.py 2005/11/25 10:50:39 1.20 @@ -214,9 +214,9 @@ class OSAS_storeOnline(SimpleItem): #teste ob schon im cache zur Zeit kein chache wenn index.meta file nicht im selben ordner wie path. - if self._v_metaFiles.has_key(startPath) and (self._v_metaFiles[realPath][0]==stats[stat.ST_MTIME]) and (path==""): - - return self._v_metaFiles[startPath][1] + #if self._v_metaFiles.has_key(startPath) and (self._v_metaFiles[realPath][0]==stats[stat.ST_MTIME]) and (path==""): + # + # return self._v_metaFiles[startPath][1] try: dom=xml.dom.minidom.parseString(server.getFile(indexMeta)) @@ -320,9 +320,9 @@ class OSAS_storeOnline(SimpleItem): return None #teste ob schon im cache - if self._v_fileSystem.has_key(realPath) and (self._v_fileSystem[realPath][0]==stats[stat.ST_MTIME]): - - return self._v_fileSystem[realPath][1] + #if self._v_fileSystem.has_key(realPath) and (self._v_fileSystem[realPath][0]==stats[stat.ST_MTIME]): + # + # return self._v_fileSystem[realPath][1] indexMetas=server.getAllIndexMetasOfSubDirs(realPath) dir=indexMetas.keys() @@ -374,10 +374,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: - try: + try: path=path.replace(getattr(handler[1],'ignorePath',''),'') except: - pass + pass url=handler[1].prefix%path text=handler[1].title string="""%s"""%(url,text) @@ -397,7 +397,7 @@ class OSAS_storeOnline(SimpleItem): objects=self.getSubDirsFromIndexMeta(path) - print "obje",objects + im=self.readObjectsFromPath(path) if not im: @@ -444,7 +444,7 @@ class OSAS_storeOnline(SimpleItem): def path_to_link(self,pathTmp=""): """generates navigation bar for viewfiles @keyword pathTmp: optional, generisch="", pfad der erstellt werden soll - @return: html Fragment, pathTmp zerlegt, dass jeder Teil von Pfad unterhalb von rootFolderName direkt angesprunden werden kann. + @return: html Fragment, pathTmp zerlegt, dass jeder Teil von Pfad unterhalb von rootFolderName direkt angesprungen werden kann. """ path=os.path.normpath(os.path.join(self.rootFolderName,pathTmp)) @@ -475,7 +475,7 @@ class OSAS_storeOnline(SimpleItem): InitializeClass(OSAS_storeOnline) - + def manage_addOSAS_storeOnlineForm(self): """interface for adding the OSAS_storeOnline""" pt=PageTemplateFile(os.path.join(package_home(globals()),'zpt','addStoreOnline.zpt')).__of__(self)