[ZCM] [ZC] 2057/ 3 Resolve "Testing.makerequest breaks
getPhysicalPath()"
Collector: Zope Bugs, Features,
and Patches ...
zope-coders-admin at zope.org
Wed Apr 5 16:53:38 EDT 2006
Issue #2057 Update (Resolve) "Testing.makerequest breaks getPhysicalPath()"
Status Resolved, Zope/bug medium
To followup, visit:
http://www.zope.org/Collectors/Zope/2057
==============================================================
= Resolve - Entry #3 by slinkp on Apr 5, 2006 4:53 pm
Status: Accepted => Resolved
Fixed on the trunk, will merge to 2.9 branch momentarily.
________________________________________
= Accept - Entry #2 by slinkp on Mar 31, 2006 11:24 am
Status: Pending => Accepted
Supporters added: slinkp
Uploaded: "makerequest.2057.patch"
- http://www.zope.org/Collectors/Zope/2057/makerequest.2057.patch/view
Here's a possible fix. Will discuss on the zope-dev list.
________________________________________
= Request - Entry #1 by slinkp on Mar 31, 2006 10:58 am
This can cause some surprising behavior in tests. Consider this zopectl debug session:
>>> from OFS.SimpleItem import SimpleItem
>>> item = SimpleItem(id='blah')
>>> item.getPhysicalPath()
('',)
>>> from Testing.makerequest import makerequest
>>> item = makerequest(item)
>>> item.getPhysicalPath()
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/home/pw/rhg/code/mydna_dev_trunk/opt/Zope-2.9.1/lib/python/OFS/Traversable.py", line 109, in getPhysicalPath
path = p.getPhysicalPath() + path
AttributeError: getPhysicalPath
==============================================================
More information about the Zope-Collector-Monitor
mailing list