[Zope] NewBie DTMl Help
S K Rahman
srahman@tracmail.com
Fri, 01 Aug 2003 21:38:51 +0530
Bravo....Thanx it did worked.
I have actually wasted lots of my time to get this solved. Rest most of
my migration work got over expect for this.
BTW I wonder in such a scenario isn't Zope supposed to throw an expection?
Regards
Dylan Reinhardt wrote:
>Do this:
>
><dtml-call "RESPONSE.redirect('main')">
>
>Note the double quotes. Any time your expression is more complex than a
>single name, you're going to need them.
>
>HTH,
>
>Dylan
>
>
>On Fri, 2003-08-01 at 06:14, S K Rahman wrote:
>
>
>>Hi all,
>>
>>I am trying to learn and if possible migrate some of my office apps to
>>zope. The trouble is somewhere here
>>
>> From Index_html page I am using a input form to get the login, password
>>so that it can authenticated of the currently internal central auth system.
>>The form is posted to login_verify having content as follows. The
>>Authenticate_user is a ZSQL method taking user ID as parameter and is
>>supposed to return password, name and access level of that user.
>>
>><dtml-in Authenticate_user>
>>
>><dtml-if expr="password==upassword">
>>
>>Auth success
>>
>><dtml-call RESPONSE.redirect('main')>
>>
>><dtml-else>
>>
>>Auth Failed
>>
>></dtml-if>
>>
>></dtml-in>
>>
>>Unfortunately I dot get Auth Sucess but the redirect never happens. I
>>tried earlier this using dtml-call instead of dtml-in but soon I
>>realized that dtml-call does not return any values I need the output of
>>password, access level so that I can set the apporiarte permissons on
>>the respective page.
>>
>>Please advise.
>>
>>Regards
>>
>>
>>_______________________________________________
>>Zope maillist - Zope@zope.org
>>http://mail.zope.org/mailman/listinfo/zope
>>** No cross posts or HTML encoding! **
>>(Related lists -
>> http://mail.zope.org/mailman/listinfo/zope-announce
>> http://mail.zope.org/mailman/listinfo/zope-dev )
>>
>>
>
>
>
>
>