Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: plone/plone.locking
...
head fork: plone/plone.locking
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Commits on Nov 30, 2011
@fafhrd91 fafhrd91 check if context is not joined to zodb connection a02265f
@lrowe lrowe Merge pull request #2 from fafhrd91/master
Check if context is not joined to zodb connection for transaction where lock is added.
ac3c7a2
Showing with 5 additions and 1 deletion.
  1. +5 −1 plone/locking/lockable.py
View
6 plone/locking/lockable.py
@@ -119,7 +119,11 @@ def stealable(self, lock_type=STEALABLE_LOCK):
def lock_info(self):
info = []
rtokens = dict([(v['token'], v['type']) for v in self._locks(False).values()])
- isReadOnly = self.context._p_jar.isReadOnly()
+ jar = self.context._p_jar
+ if jar is not None:
+ isReadOnly = jar.isReadOnly()
+ else:
+ isReadOnly = False
for lock in self.context.wl_lockValues(not isReadOnly):
if not lock.isValid():
continue # Skip invalid/expired locks

No commit comments for this range

Something went wrong with that request. Please try again.