[Zope-dev] unique rec id for Gadfly?
Martijn Pieters
Martijn Pieters <mj@digicool.com>
Sat, 25 Dec 1999 10:18:40 +0100
Saturday, December 25, 1999, 7:34:29 AM, Sin Hang Kin wrote:
SHK> I have the following code:
SHK> <dtml-call "manage_changeProperties(last_rid=last_rid + 1)">
SHK> <dtml-let rid=last_rid>
SHK> <dtml-call insert_new_record>
SHK> </dtml-let>
SHK> where last_rid is a property defined in the folder. However, rid does not
SHK> get into the zsql method.
Set rid in the REQUEST object:
<dtml-call "REQUEST.set('rid', last_rid)">
<dtml-call insert_new_record>
SHK> BTW, how do I test if the insert operation success?
No error means success.
--
Best regards,
Martijn Pieters mailto:mj@digicool.com