[Zope] how to delete an object from python??
Robert Rottermann
robert@redcor.ch
Thu, 16 Aug 2001 11:21:44 +0200
Hi there,
I wonder how to delete an object from a python script.
When I try
oName = context.this().getId()
f = context.REQUEST.PARENTS[1]
f._delObject( oName )
I can not even save the script because zope complains that
SyntaxError, Names starting with "_" are not allowed (_delObject).
redirect to 'folder_delete' I can not use either, because it tries to call
'folder_contents' which is not possible at the point where I am.
Thanks for any help
Robert