Commit 269f31f7 authored by Aurel's avatar Aurel

in loadBefore, tid can be None, in this case, act like load


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@152 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 7174adab
......@@ -335,6 +335,8 @@ class Application(ThreadingMixIn, object):
def loadBefore(self, oid, tid):
"""Load an object for a given oid before tid committed."""
# Do not try in cache as it manages only up-to-date object
if tid is None:
tid = INVALID_TID
logging.debug('loading %s before %s', dump(oid), dump(tid))
return self._load(oid, tid)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment