[ZCM] [ZC] 2352/ 1 Request "UnboundLocalError with OFS.Traversable.unrestrictedTraverse('+something')"
"Collector: Zope Bugs, Features, and Patches ..." <[email protected]> Fri, 31 Aug 2007 10:55:04 -0400
| Newsgroups | gmane.comp.web.zope.devel.collector-monitor |
|---|---|
| Message-ID | <[email protected]> |
Issue #2352 Update (Request) "UnboundLocalError with OFS.Traversable.unrestrictedTraverse('+something')"
Status Pending, Zope/bug medium
To followup, visit:
http://www.zope.org/Collectors/Zope/2352
==============================================================
= Request - Entry #1 by ldr on Aug 31, 2007 10:55 am
Uploaded: "Traversable.diff"
- http://www.zope.org/Collectors/Zope/2352/Traversable.diff/view
There is an unhandled path in the unrestrictedTraverse logic when a name[:1] is in '@+' but name is not a namespace. eg. when name is '+something'. The following patch checks that the name is actually a name space.
Test case: ob.unrestrtictedTraverse('+something') raises UnboundLocalError: local variable 'next' referenced before assignment
==============================================================