Re: [Zope-dev] Re: PDBDebugMode 0.1 Release

2006-03-16 Thread Ross Patterson
>> You should really try using a editor/IDE that automatically shows the
>> corresponding code along side the debugger, like Emacs' gud-mode which
>> can be invoked with "M-x pdb".  It rocks!
>
> I do that sometimes, but I lack sufficient wizardry to make it
> work with through-the-web scripts :-)
> But then, I don't write many of those anymore.

Put this in your .emacs:

(defvar gud-pdb-marker-regexp "^> 
\\(.*\\)(\\([0-9]+\\))\\([a-zA-Z0-9_<>]*\\|\\?\\)()\\(->[^\n]*\\)?\n")

That should do it :)

Ross
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: How to delete an object given a path in Zope

2006-03-16 Thread suresh

Takahashi, Michael wrote:

Hi Suresh,

I've actually tried that.  The problem I run into is that the folder in
my path contains a dash. When I call manage_delObjects on the following:


obj = context.restrictedTraverse('webcasts/courses/2005-2006/temp')
id = obj.getId()
context.webcasts.courses.2005-2006.manage_delObjects(id)


Try:

context.webcasts.courses['2005-2006'].manage_delObjects(id)

--
Thank you and Cheers,

Suresh V.
CTO, ParTecs, Bangalore
http://www.partecs.com
Plone-Zope-Python Consulting

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )