[Fwd: Re: [Zope-dev] Problems adding many objects]

Morten W. Petersen morten at nidelven-it.no
Mon Sep 26 07:35:20 EDT 2005


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 at nidelven-it.no>
To: Chris McDonough <chrism at plope.com>
References: <4336AF98.3030606 at nidelven-it.no>
<249B923B-2427-4A01-B656-56300CC7EE88 at plope.com>
<4337D9A8.70107 at nidelven-it.no>
<5806920C-3A04-42EE-A2D5-487F630A10CB at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: morten.vcf
Type: text/x-vcard
Size: 290 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20050926/39d1eb8f/morten.vcf


More information about the Zope-Dev mailing list