[Twisted-Python] Adding pb users online

Itamar Shtull-Trauring itamar at itamarst.org
Wed Jan 14 17:38:53 EST 2004

On Wed, 2004-01-14 at 17:29, Martin Stenhård wrote:
> c = checkers.InMemoryUsernamePasswordDatabaseDontUse()
> # users comes from a SQL db
> for user in users: 
>        print "User  Password  Email Status  Disable Lastlogin"
>        print user.username," ",user.password," ",user.email,"
> ",user.status," ",user.disable," ",
>        print time.ctime(user.lastlogin)        
>        c.addUser(user.username,user.password)

Don't use a checkers.InMemoryUsernamePasswordDatabaseDontUse (the name
is a hint ;). Instead write a checker that reads directly from the MySQL

Itamar Shtull-Trauring    http://itamarst.org
Looking for a job: http://itamarst.org/resume.html

More information about the Twisted-Python mailing list