[Zope] getPhysicalPath()

Dieter Maurer dieter@handshake.de
Tue, 18 Sep 2001 23:33:19 +0200 (CEST)


Chris Curvey writes:
 > I'm not sure what I did wrong, but Zope seems to be reporting something 
 > from deep within...
 > 
 > The error message is just
 > 
 > Error Type:  Type Error
 > Error Value:  first argument must be sequence of strings
 > 
 > the last message in the stack trace is
 > 
 > <zopedir>/lib/python/Zope/__init__.py, line 250, in recordMetaData
 > 
 > If I open up __init__.py for Zope (shiver), the line in question is the 
 > second one from the pair below:
 > 
 > if hasattr(object, getPhysicalPath):
 >     path = join(object.getPhysicalPath(), '/')
 > 
 > So it looks like somewhere along the line, my object must have 
 > overridden getPhysicalPath, but I certainly don't have any method with a 
 > name like that, and I'm subclassing SimpleItem.SimpleItem.
I would insert

	print object, object.getPhysicalPath, object.getPhysicalPath()

before the failing line to learn what object (type) causes
the problem and how precisely it looks like.

I would expect the call to "getPhysicalPath" returns "None",
probably a bug...


Dieter