3 messages in com.googlegroups.pylons-discussRe: AuthKit with myghty templates?
FromSent OnAttachments
Chris Shenton14 Nov 2006 10:16 
ben adam14 Nov 2006 11:19 
ben adam14 Nov 2006 17:28 
Subject:Re: AuthKit with myghty templates?
From:ben adam (ibna@public.gmane.org)
Date:11/14/2006 11:19:42 AM
List:com.googlegroups.pylons-discuss

Signout is easy. In a controller have a method that calls your myghty template: e.g.

def signout(self): # any checking you want to do # you can attach a message to c variable to display in template return render_response('/signout.myt')

Also, in your .ini file you'll point to this method as: authkit.cookie.signout = /your_controller/signout

For signin I think you'd have to use regular html file and point to that in your .ini file as: authkit.form.template.file = %(here)s/path/to/your/signin.html

The html file will contain a form with action that points to your home page.

On Nov 14, 10:16 am, Chris Shenton
<chri@public.gmane.org> wrote:

I started playing with AuthKit and the form-based authentication looks exactly like what I need. The example code worked fine and generated a bare-bones username/password login page. The doc mentions you can specify your own templates to use in python, but I'm don't know how to specify these.

I see in authenticate/form.py where "template" is assigned the form HTML, then how it's processed, but don't know how I'd use a more attractive page for my site and how I'd process it. I'd like a successful login to take me to some home page for my app.

On "signout" I'd like to go to some other page template in my app.

Anyone have examples or docs on doing this?

Thanks.