make sure query result is an iterator
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3520 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
02fb505154
commit
181c57b3b0
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ class LinkProcessor(object):
|
|||
targetPageName, params = targetPageName.split('?', 1)
|
||||
if '#' in targetPageName:
|
||||
targetPageName, fragment = targetPageName.split('#', 1)
|
||||
existing = lm.query(source=sourceUid, name=self.targetName)
|
||||
existing = iter(lm.query(source=sourceUid, name=self.targetName))
|
||||
if existing:
|
||||
link = existing.next()
|
||||
if link.target is not None:
|
||||
|
|
Loading…
Add table
Reference in a new issue