Re: dtml-try with z-sql

Jian Aijun <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <CAANxm2pOG4LXt5T7NZBAP8iw5ZBOKaw=zS2y0mMk7vCFB1LD8w@mail.gmail.com>
I'm not familiar with DTML,
I would like to:

deleteUser(USERNAME=invalid USERNAME)

Does not throw an exception,

Should be judged through a function return value.


2013/2/1 murat bilal <[email protected]>

> Hi all,
>
> I have DTML-Method like below
> <dtml-try>
> <dtml-call "deleteUser(USERNAME=USERNAME)">
>
>    <dtml-except>
>  An error occurred. Entry was <b>NOT</b> deleted.
> </dtml-try>
>
> deleteUser is Z-SQL method.USERNAME is the argument in Z-SQL method also
> column name.
> When i click erase button it succesfully deletes record.But if i enter an
> invalid username it did not throw any exceptions.
>
> Please help
>
> REgards
>
> _______________________________________________
> Zope-Dev maillist  -  [email protected]
> https://mail.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists -
>  https://mail.zope.org/mailman/listinfo/zope-announce
>  https://mail.zope.org/mailman/listinfo/zope )
>
>

_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.