[Zope] What is the Python script that is similar to a dtml-in call
Larry McDonnell
larry at technologyinedu.com
Mon May 31 11:12:10 EDT 2004
Hi,
Within the dtml-in statement, I use serial_number to find the record in
the db. I checking for a valid serial number but what is return from the
dtml-in statement if the serial number lookup is not found.
Larry
Small Business Services wrote:
>From: "Larry McDonnell" <larry at technologyinedu.com>
>
>
>>I use the serial_number variable to look up the record. Does the
>>dtml-call return a status back if the record is not found?
>>
>>
>>
>>>><dtml-call "REQUEST.set('serial_number', serial_number)">
>>>>
>>>><dtml-in lookup_header_record>
>>>> <dtml-call "REQUEST.set('equip_type', equip_type)">
>>>> <dtml-call "REQUEST.set('pr', pr)">
>>>></dtml-in>
>>>>
>>>>
>>>>
>
>By 'record' do you mean the variable 'serial_number' in the above
>REQUEST.set statement?
>
>dtml-call won't 'return' anything. If, in your REQUEST.set('label',
>variable) statement 'variable' is not defined you will get an error.
>
>
>Jonathan
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20040531/e4ce6a97/attachment.html
More information about the Zope
mailing list