I have worked out thanks to Seb's comments that the problem I
have with the
use of manage_delObjects is (I think) that I am passing in the title or id
of the object to be deleted rather than the object itself.
Not quite... manage_delObjects takes a string which is the id of the object
to be
d I
need to pass in the value of the_id not the name of it.
Ideally I want to say
dtml-call "manage_delObjects(REQUEST['id_to_delete'])"
but again this fails to find the object.
Any ideas?
Thanks for helping,
Alex
-Original Message-
From: Seb Bacon [mailto:[EMAIL PROTECTED]]
Hi, just some quick pointers (I'm in a hurry...)
refer to http://zdp.zope.org/projects/zqr/ZopeQR for more details
!-- do the deletion - this is the bit that doesn't work --
dtml-call "manage_delObjects('the_id')"
What is the correct way to use manage_delObjects?
dtml-call
Instead of ...
dtml-call
"manage_delObjects('REQUEST['id_to_delete']')"
try
dtml-call
"manage_delObjects('REQUEST.id_to_delete')"
Chip Johansen
From: "Bowyer, Alex" [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED]
Subject: [Zope] Help wanted on Zope ZClasses/DTML please.
Date:
or try: dtml-call "manage_delObjects(REQUEST['id_to_delete'])"
- Original Message -
From: "chip johansen" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, November 03, 2000 9:01 AM
Subject: Re: [Zope] Help wanted on Zope ZClasses/DTM