praveen_m86 at rediffmail.com
Tue Dec 14 01:12:39 CST 2010
I am currently learning about publishing repositories with
mercurial. I am actually trying to replace the code
user = req.env.get('REMOTE_USER') in hgwebidir_mod.py file with my personal
db authentication mechanism.
Instead of having the folder where my hgwebdir.cgi resides as apache
protected and getting the valid user through basic authentication, i am
trying to get the user name and the password through the raw_input() in
method and checking with the db or even with my htpasswd file for user
authentication purpose and setting the user variable if the user is valid or
throwing an error if not. But raw_input function seems to be not working
inside this file. Import MySQLdb also doesnt work. Wat could be the reason,
is it possible to have this personal authentication idea implemented by
modifying this file ?.
View this message in context: http://mercurial.808500.n3.nabble.com/hgwebdiir-mod-py-customizing-tp2084089p2084089.html
Sent from the Development mailing list archive at Nabble.com.
More information about the Mercurial-devel