Lennart Regebro wrote:
if not hasattr(pack, '_m'): pack._m=fd.__dict__
fd.debug_compile = debug_compile
fd.debug_compile__roles__ = ('Manager',)
Ah, but did you need to use zdb's recompile method?
Seems to work. I just needed to debug a script, and it worked fine!
Great product!
Th
For those people who are "porting" code to Zope 2.8, perhaps you want
to read this:
http://www.peterbe.com/plog/itp-on-zope-2.8.0
2005/9/29, Lennart Regebro <[EMAIL PROTECTED]>:
> On 9/29/05, Lennart Regebro <[EMAIL PROTECTED]> wrote:
> > This code:
> >
> > if not hasattr(pack, '_m'): pack._m=
On 9/29/05, Lennart Regebro <[EMAIL PROTECTED]> wrote:
> This code:
>
> if not hasattr(pack, '_m'): pack._m=fd.__dict__
> fd.debug_compile = debug_compile
> fd.debug_compile__roles__ = ('Manager',)
Seems to work. I just needed to debug a script, and it worked fine!
Great product!
_
Pascal Peregrina wrote:
That solution was given to me by someone on the zope mailing list by the
time Zope 2.8.0 was out :)
*shrugs*
Still a fix for zdb that would have been handy for me to have.
Are you using any zodb-based python scripts or are all yours
FSPythonScripts?
cheers,
Chris
] Zope Debugger 0.8.0 Released!
Pascal Peregrina wrote:
> If what is intended with this code is to monkey patch some class, then
> I had a similar problem on 2.8.0 and I solved it by using setattr()
> instead of item assignment (and it works with 2.7.6).
It depends, did you try
On 9/29/05, Chris Withers <[EMAIL PROTECTED]> wrote:
> *sigh*, looks like some of the project registration machinery has
> changed between 2.7 and 2.8.
Well, you are using __dict__, which you aren't supposed t odo for new
style classes, which FactoryDispatchers now seem to be.
This code:
if
Pascal Peregrina wrote:
If what is intended with this code is to monkey patch some class, then I had
a similar problem on 2.8.0 and I solved it by using setattr() instead of
item assignment (and it works with 2.7.6).
It depends, did you try using the recompile method and did it work with
your
Withers
Sent: 29 September 2005 09:12
To: Luca Olivetti
Cc: [EMAIL PROTECTED]; zope@zope.org
Subject: Re: [Zope] Zope Debugger 0.8.0 Released!
Luca Olivetti wrote:
> folder_permissions, raise_exc=debug_mode)
> File "/usr/local/zope-2.8.1-final/lib/python/OFS/Application.py",
Luca Olivetti wrote:
folder_permissions, raise_exc=debug_mode)
File "/usr/local/zope-2.8.1-final/lib/python/OFS/Application.py", line
773, in install_product
initmethod(context)
File "/home/luca/zopetest/Products/zdb/__init__.py", line 64, in
initialize
pack._m['debug_compile
En/na Chris Withers ha escrit:
For more information, please see:
http://www.simplistix.co.uk/software/zope/zdb
2005-09-29 08:43:11 ERROR Zope Couldn't install zdb
Traceback (most recent call last):
File "/usr/local/zope-2.8.1-final/lib/python/OFS/Application.py",
line 773, in install_product
Zope Debugger is an enhanced version of pdb for use with Zope.
It can be used simply by inserting the following lines in any python
code you'd like to debug, including Script (Python)'s and FSPythonScripts:
from Products.zdb import set_trace
set_trace()
It requires no changes to Zope, CMF or
11 matches
Mail list logo