[Zope-dev] Re: How to delete an object given a path in Zope
suresh
suresh_vv at yahoo.com
Thu Mar 16 04:11:07 EST 2006
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
More information about the Zope-Dev
mailing list