15 May
2002
15 May
'02
7:59 a.m.
I need to be able to test the Catalog to see if the username is already indexed, and if so, raise a message that that username is already on file.
I've tried : <dtml-in Catalog> <dtml-if "_['username'] == _['sequence-item']">
a lot of stuff snipped what's the username index in the Catalog? let's say the index is u_name <dtml-if "Catalog(u_name={'query':_['username']})"> user exist <dtml-else> do your thang here </dtml-if> this code is untested, and i claim no responsibility for any data munged, zope instance sank, etc, etc hth -- http://www.kedai.com.my/ http://www.kedai.com.my/eZine http://www.zope.org/Members/kedai http://www.my-zope.org Am I Evil?