version 1.17, 2005/03/17 19:26:51
|
version 1.20, 2005/11/25 10:50:39
|
Line 214 class OSAS_storeOnline(SimpleItem):
|
Line 214 class OSAS_storeOnline(SimpleItem):
|
|
|
#teste ob schon im cache zur Zeit kein chache wenn index.meta file nicht im selben ordner wie path. |
#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==""): |
#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] |
# return self._v_metaFiles[startPath][1] |
|
|
try: |
try: |
dom=xml.dom.minidom.parseString(server.getFile(indexMeta)) |
dom=xml.dom.minidom.parseString(server.getFile(indexMeta)) |
Line 320 class OSAS_storeOnline(SimpleItem):
|
Line 320 class OSAS_storeOnline(SimpleItem):
|
return None |
return None |
|
|
#teste ob schon im cache |
#teste ob schon im cache |
if self._v_fileSystem.has_key(realPath) and (self._v_fileSystem[realPath][0]==stats[stat.ST_MTIME]): |
#if self._v_fileSystem.has_key(realPath) and (self._v_fileSystem[realPath][0]==stats[stat.ST_MTIME]): |
|
# |
return self._v_fileSystem[realPath][1] |
# return self._v_fileSystem[realPath][1] |
|
|
indexMetas=server.getAllIndexMetasOfSubDirs(realPath) |
indexMetas=server.getAllIndexMetasOfSubDirs(realPath) |
dir=indexMetas.keys() |
dir=indexMetas.keys() |
Line 397 class OSAS_storeOnline(SimpleItem):
|
Line 397 class OSAS_storeOnline(SimpleItem):
|
|
|
objects=self.getSubDirsFromIndexMeta(path) |
objects=self.getSubDirsFromIndexMeta(path) |
|
|
print "obje",objects |
|
|
|
im=self.readObjectsFromPath(path) |
im=self.readObjectsFromPath(path) |
if not im: |
if not im: |
Line 444 class OSAS_storeOnline(SimpleItem):
|
Line 444 class OSAS_storeOnline(SimpleItem):
|
def path_to_link(self,pathTmp=""): |
def path_to_link(self,pathTmp=""): |
"""generates navigation bar for viewfiles |
"""generates navigation bar for viewfiles |
@keyword pathTmp: optional, generisch="", pfad der erstellt werden soll |
@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)) |
path=os.path.normpath(os.path.join(self.rootFolderName,pathTmp)) |