Re: how do i display a certain screen if a certain user has logged in?
"Matt Schmidt" <[email protected]> Mon, 2 Oct 2006 14:04:46 -0400
| Newsgroups | gmane.comp.python.spyce.general |
|---|---|
| Message-ID | <[email protected]> |
I personally would make a class or module apart from the config file, just so I wouldn't forget that those bits of code are in there. But, if that doesn't suit you, do what works for you. You can use the 'redirect' module to redirect traffic. It's very straight-forward, just check the docs. Once again, where you put the code is mostly a matter of preference. You could even store redirection targets in the database if it's more efficient for your project. On 10/2/06, Mary Jane Boholst <[email protected]> wrote: > Hello again, > Sorry for all the questions. Its been a while since I have done any real > programming and my brain is rather slow in getting into the right gear. > I have one more question for the moment (I promise I will try not to ask > so many!!) how do I display a certain screen for certain users? Do I do > this in the spyceconf.py file in the validator or in the .spy page or > somewhere else? I am aware I need to access the username and utilise an > if elif structure of the sort.... if this user then display this and if > this user display this but I am not sure where I am supposed to put this > code nor the best way to specify what to display. > Sorry to keep bothering you all. Thanks a lot for your help. > MJ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Spyce-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/spyce-users > -- Matt http://sloat.liek.us/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV