|
|
| version 1.4, 2004/12/23 12:38:22 | version 1.5, 2004/12/23 15:56:19 |
|---|---|
| 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 |