bug fix: avoid error if no record manager is present
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@3158 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
c3a412a902
commit
7c09dec614
1 changed files with 5 additions and 3 deletions
|
@ -68,9 +68,11 @@ class BaseWorkItemsView(object):
|
|||
|
||||
@Lazy
|
||||
def workItems(self):
|
||||
ts = self.loopsRoot.getRecordManager().get('work')
|
||||
if ts is not None:
|
||||
return IWorkItems(ts)
|
||||
rm = self.loopsRoot.getRecordManager()
|
||||
if rm is not None:
|
||||
ts = rm.get('work')
|
||||
if ts is not None:
|
||||
return IWorkItems(ts)
|
||||
|
||||
@Lazy
|
||||
def workItemsCriteria(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue