[Fwd: Re: [Zope-dev] Problems adding many objects]
Oops, one for the list as well. -------- Original Message -------- Subject: Re: [Zope-dev] Problems adding many objects Date: Mon, 26 Sep 2005 13:34:50 +0200 From: Morten W. Petersen <morten@nidelven-it.no> To: Chris McDonough <chrism@plope.com> References: <4336AF98.3030606@nidelven-it.no> <249B923B-2427-4A01-B656-56300CC7EE88@plope.com> <4337D9A8.70107@nidelven-it.no> <5806920C-3A04-42EE-A2D5-487F630A10CB@plope.com>
It doesn't say "returning issue, None"? My guess is that the if request is not none branch is called and it goes that way. But there's no way to know for sure without running it.
It says 'returning issue <issue at xxxxx>'
This is a good place to use the Python debugger... as the first line of this method, insert "import pdb; pdb.set_trace()", then start up Zope in the foreground (runzope or zopectl fg), then cause the method to be invoked through a browser.
On the console you will see a pdb prompt. You can step through the code by using "n". To print the value of a variable type "p <variablename>", to step in to a function call press "s". When you're finished, press "c" to continue or "q" to quit. This will be the fastest way to see what's happening in this method.
Yep, I'll have a go at this later. Thanks for describing the debug process. :) -Morten -- Regards, Morten Tlf: +47 45 44 00 69 Blog: http://www.blogologue.com
participants (1)
-
Morten W. Petersen