Apparently app is a function in wherever you're doing that, which just
isn't right. If you use zopectl debug, app should be a Zope
Application object. If it isn't... uh... well... something else
besides the POSKeyErrors are wrong. ;-)
On Sat, 2005-09-03 at 16:23 -0400, Jake wrote:
I have been reading the instructions in ZopeLabs trying to figure out
how to get rid of a few POSKeyErrors, but I can't get by this one point.
http://zopelabs.com/cookbook/1054240694
Now that we have an OID, let's resolve that to the actual object
like so:
app._p_jar[oid]
Once you have the object, you can start getting clues about it. It's not
acquisition-wrapped so you can't easily find out its containment path,
but you can find out its ID, mod time, type, and owner, like so:
I get:
obj = app._p_jar['\x00\x00\x00\x00\x00\x04\x9d#']
Traceback (most recent call last):
File stdin, line 1, in ?
AttributeError: 'function' object has no attribute '_p_jar'
Any help?
Jake
http://www.ZopeZone.com
Zoping for the rest of us
___
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )
___
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )