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
|
@Lazy
|
||||||
def workItems(self):
|
def workItems(self):
|
||||||
ts = self.loopsRoot.getRecordManager().get('work')
|
rm = self.loopsRoot.getRecordManager()
|
||||||
if ts is not None:
|
if rm is not None:
|
||||||
return IWorkItems(ts)
|
ts = rm.get('work')
|
||||||
|
if ts is not None:
|
||||||
|
return IWorkItems(ts)
|
||||||
|
|
||||||
@Lazy
|
@Lazy
|
||||||
def workItemsCriteria(self):
|
def workItemsCriteria(self):
|
||||||
|
|
Loading…
Add table
Reference in a new issue