> below is python script c_nlogged:
> request = container.REQUEST
> RESP =  request.RESPONSE
> passwd = request.password1
> user = request.username,

See the comma on the end of the user= line? That's your syntax error.
When you get a syntax error always check a couple of lines further up
the script.

> if container.chkpwd(uname=user,pwd=passwd): //getting sysntax error here.
>         RESP.redirect(/store_nic/consumables/c_menu)
> else:
>         RESP.redirect(/store_nic/consumables/index_html)
> below is zsql method chkpwd :
> select distinct(password) from c_userdet where
> username=<dtml-sqlvar uname type="string">
> and
> password=<dtml-sqlvar pwd type="string">
> i wanted to avoid d middle python script n handle the pwd validation
> in the same zpt .
> is it possible.
> i have carry req vars eg. username pwd ,districtname in session for future 
> use.

And can you _PLEASE_ use proper English spelling? It's not 'd', it's
'the'. I realise that you may not be a native English speaker so I
won't worry about grammar, but when I see an email like this 99% of
the time I don't even bother reading it. I don't mean to be offensive,
but I think you would get a better response if your emails were easy
to read, with proper capitalisation and words spelt out in full.
Phillip Hutchings
Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to