Suppose, you have a database, items,  that has fields product and scheme.

You are processing a form that has field old_product and new_product.

You have a ZSQL method, get_scheme, with parameter old_product and body
select * from items where product = <dtml-sqlvar old_product type=string>.

You also have a ZSQL method, new_scheme, with parameter new_product and


<dtml-in get_scheme>
     <dtml-call new_scheme>

fails, with message

          Zope Error

          Zope has encountered an error while publishing this resource. 

          Error Type: NameError
          Error Value: scheme

          Troubleshooting Suggestions

               This resource may be trying to reference a nonexistent object or 
variable scheme. 
               The URL may be incorrect. 
               The parameters passed to this resource may be incorrect. 
               A resource that this resource relies on may be encountering an error. 

          For more detailed information about the error, please refer to the HTML 
source for this page. 

          If the error persists please contact the site maintainer. Thank you for your 

even though

<dtml-in get_scheme>
     <dtml-var "scheme">

prints the expected value.


Jim Penny

Zope maillist  -  [EMAIL PROTECTED]
**   No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to