Re: how do i display a certain screen if a certain user has logged in?
"Jonathan Ellis" <[email protected]> Mon, 02 Oct 2006 14:01:09 -0700
| Newsgroups | gmane.comp.python.spyce.general |
|---|---|
| Message-ID | <[email protected]> |
There's a simple example over here: http://spyce.sourceforge.net/docs/login-optional.src.html login_id() will return the id defined by your validator function if the login is successful, so you can be more specific than just "is somebody logged in." -J On Mon, 02 Oct 2006 12:39:05 +0100, "Mary Jane Boholst" <[email protected]> said: > 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 -- C++ is history repeated as tragedy. Java is history repeated as farce. --Scott McKay ------------------------------------------------------------------------- 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