[Zope] how to delete an object from python??

Sylvain Boureliou sylvain.boureliou@msg-software.com
Thu, 16 Aug 2001 11:30:55 +0200


Hi

try : manage_delObjects(id)

Sylvain


-----Message d'origine-----
De : zope-admin@zope.org [mailto:zope-admin@zope.org]De la part de
Robert Rottermann
Envoyé : jeudi 16 août 2001 11:22
À : zope@zope.org
Objet : [Zope] how to delete an object from python??


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





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