Re: [Zope3-dev] Opaque error, help

2006-11-09 Thread Christian Theune
Hi,

Shane Hathaway wrote:
 I'm working on enhancing zope.app.apidoc, but I ran into an exception
 that's hard to decipher.  I've attached the traceback.  I don't know
 which __init__() it's complaining about, and I don't know how to find
 out.  What can I do to find out which __init__() the adapter hook is
 trying to call?

Pdbing into this and stepping into the adapter_hook might work.

Ape-is-still-alive-ly,
Christian

-- 
gocept gmbh  co. kg - forsterstraße 29 - 06112 halle/saale - germany
www.gocept.com - [EMAIL PROTECTED] - phone +49 345 122 9889 7 -
fax +49 345 122 9889 1 - zope and plone consulting and development




signature.asc
Description: OpenPGP digital signature
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Opaque error, help

2006-11-09 Thread Shane Hathaway

Christian Theune wrote:

Shane Hathaway wrote:

I'm working on enhancing zope.app.apidoc, but I ran into an exception
that's hard to decipher.  I've attached the traceback.  I don't know
which __init__() it's complaining about, and I don't know how to find
out.  What can I do to find out which __init__() the adapter hook is
trying to call?


Pdbing into this and stepping into the adapter_hook might work.


Unfortunately, the adapter hook is in C.  It would be great if I could 
switch it to Python.  Is that possible?



Ape-is-still-alive-ly,


Well, it's still running on my site. ;-)

Shane

___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Opaque error, help

2006-11-09 Thread Christian Theune


Shane Hathaway wrote:
 Christian Theune wrote:
 Shane Hathaway wrote:
 I'm working on enhancing zope.app.apidoc, but I ran into an exception
 that's hard to decipher.  I've attached the traceback.  I don't know
 which __init__() it's complaining about, and I don't know how to find
 out.  What can I do to find out which __init__() the adapter hook is
 trying to call?

 Pdbing into this and stepping into the adapter_hook might work.
 
 Unfortunately, the adapter hook is in C.  It would be great if I could
 switch it to Python.  Is that possible?

I remember being able to step into it. pdb then put me into the next
Python-level within there ...

Probably you can delete some .so file to make it not use the
C-optimizations.

 
 Ape-is-still-alive-ly,
 
 Well, it's still running on my site. ;-)

It's a great way to give people a migration/exit strategy out of
existing ZMI apps.

Christian

-- 
gocept gmbh  co. kg - forsterstraße 29 - 06112 halle/saale - germany
www.gocept.com - [EMAIL PROTECTED] - phone +49 345 122 9889 7 -
fax +49 345 122 9889 1 - zope and plone consulting and development




signature.asc
Description: OpenPGP digital signature
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Opaque error, help

2006-11-09 Thread Shane Hathaway
Christian Theune wrote:
 
 Shane Hathaway wrote:
 Unfortunately, the adapter hook is in C.  It would be great if I could
 switch it to Python.  Is that possible?
 
 I remember being able to step into it. pdb then put me into the next
 Python-level within there ...
 
 Probably you can delete some .so file to make it not use the
 C-optimizations.

Good idea!  That helped a lot.  I deleted
src/zope/interface/_zope_interface_coptimizations.so, allowing me to use
pdb to discover it was trying to instantiate a
'zope.traversing.namespace.view' with only one argument.  That looks
like a Zope testing bug to me, but I need to concentrate on solving
other problems, so I changed my code to directly instantiate the view I
needed.  Now the tests pass again.

 It's a great way to give people a migration/exit strategy out of
 existing ZMI apps.

For me, the value is in the comfort of a transparent database.  I want
to know exactly what Zope is storing.  FileStorage makes that fairly hard.

Shane

___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com