Re: spy:login_required renderer

"Jonathan Ellis" <jonathan-UcS88TCF7sJxtahE/[email protected]> Mon, 18 Dec 2006 14:21:15 -0700
Newsgroups gmane.comp.python.spyce.general
Message-ID <[email protected]>
Here's how you do it:

0) put your .spi in the tags/ directory generated by spyceProject

1) add your .spi to the globaltags list

globaltags.append((None, 'myRender.spi', 'myrender'))

2) change login and loginrequired renders to yours

login_render = 'myrender:login'
loginrequired_render = 'myrender:login_required'

3) you probably also want to change the default validator, look for
login_defaultvalidator in spyceconf.py and read the comments above it
:)

HTH,

On 12/18/06, Wolfgang Reiser <w-reiser-S0/[email protected]> wrote:
> Hi Jonathan!
>
> I have a little problem, I want to make a customized login_required handler and don't know
> how. I have written a customized .spi file named myRender.spi where do I have to put it
> and how do I have to edit my config.py?
> You have written in your blog that it is easy to cutomize such things in spyce, could you please
> explain how?

-- 
Jonathan Ellis
http://spyced.blogspot.com

-------------------------------------------------------------------------
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