[Zope] how to check if the ResultSet is null?

Robert Wohlfahrt robert.wohlfahrt@sachsen-net.com
Fri, 14 Jul 2000 09:59:57 +0200


Hi,

> Hi, I still got problems after I changed my code according to your 
> suggestion. Here is the detail describtion of my code:
> In registration form, I have a table which contain a field usr_email 
>      (<tr>
>         <td width="40%" align="right">Email Address&nbsp; </td>
>         <td width="60%"><input type="text" name="usr_email" size="20"></td>
>       </tr>)
>       
> This form takes an action in which I have following lines:
> <dtml-if search_membership>
> <p>Your email address has been used. </p>
> <dtml-else>
> <dtml-call personinfo_insert>
> <h2>Welcome <dtml-var name="usr_fname">! You became a new user.</h2> 
> </dtml-if>

Does it work, if you use the <dtml-in><dtml-else></dtml-in> construct
as follows:
<dtml-in search_membership size=1>
    <p>Your email address has been used. </p>
<dtml-else>
    <dtml-call personinfo_insert>
    <h2>Welcome <dtml-var name="usr_fname">! You became a new
    user.</h2> 
</dtml-in>

If not, are you sure you inserted usr_email into the "Arguments"-field
of your sql-Method?

Robert
-- 
Robert Wohlfahrt (robert.wohlfahrt@sachsen-net.com)
Tel: 0179 / 2980074 Fax: 0351 / 2880145