version 1.83, 2008/09/25 12:37:54
|
version 1.84, 2008/09/25 13:41:58
|
Line 2028 class CDLIFileFolder(extVersionedFileFol
|
Line 2028 class CDLIFileFolder(extVersionedFileFol
|
|
|
hash = md5.new(repr(self.makelist(ids))).digest() # erzeuge hash als identification |
hash = md5.new(repr(self.makelist(ids))).digest() # erzeuge hash als identification |
#TODO: do I need garbage collection for _v_tmpStore ? |
#TODO: do I need garbage collection for _v_tmpStore ? |
|
#logging.debug("list:"+repr(self.makelist(ids))) |
|
#logging.debug("Hash:"+repr(hash)) |
if hasattr(self.cdliRoot,'_v_tmpStore') and self.cdliRoot._v_tmpStore.has_key(hash): |
if hasattr(self.cdliRoot,'_v_tmpStore') and self.cdliRoot._v_tmpStore.has_key(hash): |
|
logging.debug("asking for storage") |
return self.cdliRoot._v_tmpStore[hash] |
return self.cdliRoot._v_tmpStore[hash] |
|
|
#TODO: get rid of one of these.. |
#TODO: get rid of one of these.. |
#ids=[x.getObject().getId() for x in ret] |
#ids=[x.getObject().getId() for x in ret] |
ret=[(self.getFileObject(x),self.getFileObjectLastVersion(x)) for x in ids] |
ret=[(self.getFileObject(x),self.getFileObjectLastVersion(x)) for x in ids] |
self.REQUEST.SESSION['fileIds']=ids#store fieldIds in session for further usage |
|
|
#self.REQUEST.SESSION['fileIds']=ids#store fieldIds in session for further usage |
|
#self.REQUEST.SESSION['searchList']=self.REQUEST.SESSION['fileIds'] |
|
self.REQUEST.SESSION['fileIds']=list#store fieldIds in session for further usage |
self.REQUEST.SESSION['searchList']=self.REQUEST.SESSION['fileIds'] |
self.REQUEST.SESSION['searchList']=self.REQUEST.SESSION['fileIds'] |
|
|
if display: |
if display: |
Line 2046 class CDLIFileFolder(extVersionedFileFol
|
Line 2052 class CDLIFileFolder(extVersionedFileFol
|
if not hasattr(self,'_v_tmpStore'): |
if not hasattr(self,'_v_tmpStore'): |
self.cdliRoot._v_tmpStore={} |
self.cdliRoot._v_tmpStore={} |
#logging.debug("HHHHHHNEU:"+repr(self.makelist(ids))) |
#logging.debug("HHHHHHNEU:"+repr(self.makelist(ids))) |
logging.debug("HHHHHHNEU:"+repr(hash)) |
#logging.debug("HHHHHHNEU:"+repr(hash)) |
self.cdliRoot._v_tmpStore[hash] = ret # store in session |
self.cdliRoot._v_tmpStore[hash] = ret # store in session |
return ret |
return ret |
|
|