Head... hurts... *brain go all 'splodey*

Feb 19, 2009 15:53

Hacking python code designed to run as a cgi script, so that I can use in cherrypy for a website IS. NOT. FUNNY.

Things change, in rather strange ways. I'm trying to handle session data and user authentication, with a totally new, and reconfigured user db layout, and modified session db layout.

Variables and Methods aren't in the same place, but then I expected that, but the code I'm using 'recycling' references the stuff ALL THE FRAKING TIME.
Passing Data is interesting, because the original validation script created the session, now I want to test for one earlier, so that if you are logged in when you go to the index (login) page, it just passes you through to the main site, rather than displaying the login screen (It's a private site, so you can't see anything without being logged in, and it'll redirect you to login if you don't have a cookie).

Note to self, next time I'm working on a new project, recycling code is not always the best plan...

work

Previous post Next post
Up