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

Takahashi, Michael MTakahashi at oid.ucla.edu
Tue Mar 14 15:25:21 EST 2006


Hi guys,

 

I am trying to figure out how to delete an object in Zope given a path.

 

Using restrictedTraverse I'm able to get the object by its path.  I then
want to delete this object.  

 

I'm assigning the result to 'obj' as shown here:

 

obj = context.restrictedTraverse('webcasts/courses/temp')

 

The goal here is to be able to delete 'temp' by giving it a path.

 

 

Any help is greatly appreciated.

 

Thanks,

 

Mike

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope-dev/attachments/20060314/a1bc06ab/attachment.htm


More information about the Zope-Dev mailing list