I was also getting the keyerror before but now I use the work around
mentioned in the pylonsbook (check one of the Caution! boxes in Ch18,
i.e. add authkit middleware at the end just before return statement).

On Oct 14, 12:51 pm, "Walter Cruz" <[EMAIL PROTECTED]> wrote:
> Looks like a new version from authkit was released yesterday.. Maybe
> the docs need a update..
>
> On 10/14/08, Steven <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> >  I'm going through the tutorials athttp://pylonsbook.comand have been
> >  trying to get through the AuthKit section for a while.
>
> >  I've tried both "easy_install AuthKit==dev" and "easy_install
> >  "AuthKit>=0.4.1,<=0.4.9"", Pylons 0.9.7, SQLAlchemy 0.5.
>
> >  In both cases it doesn't seem to work.. it looks like the pylonsbook
> >  and authkit are a work in progress ( they both look like they've been
> >  updated in the last couple weeks)...  while it is probably just me
> >  being a newbie and doing things wrong.. I am wondering also if I'm
> >  meant to be using AuthKit yet or if it isn't completed yet.
>
> >  It correctly displays the login screen when I try to access a
> >  controller that is protected with the authorize decorator however when
> >  I try to login with "foo" and password "bar" (from pylonsbook
> >  tutorial).. I get a
>
> >  KeyError exception for pylons.pylons not being valid...
>
> >  Since I wasn't sure if AuthKit was complete I switched over to trying
> >  using repoze.who so I can't get a complete stack trace easily now..
> >  but thought I would ask folks anyhow.
>
> >  [1] has anyone had any luck getting AuthKit to log users in / out
> >  using SQLAlchemy and UsersFromDatabase?  (I mean is AuthKit complete?)
> >  [2] if so, any times on the exception I'm seeing?
>
> >  Steven
>
> --
> []'
> - Walter
> waltercruz.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to