[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.20

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

2006-03-15 Thread suresh
Takahashi, Michael wrote: I am trying to figure out how to delete an object in Zope given a path. Any help is greatly appreciated. You want to call manage_delObjects on the parent folder and give it the list of ids. ___ Zope-Dev maill

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

2006-03-15 Thread Max M
Tres Seaver wrote: Takahashi, Michael wrote: 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') You need to get a reference to th

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

2006-03-15 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 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/20

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

2006-03-15 Thread Takahashi, Michael
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