Thanks! Moving the middleware line worked and I was able to get through the SimpleSite Part 3 Auth tutorial.
Btw, I wanted to take this opportunity to let you know I'm really enjoying your Pylons Book, really great and pertinent information! On Oct 14, 3:44 pm, James Gardner <[EMAIL PROTECTED]> wrote: > There is an incompatibility between AuthKit and Pylons 0.9.7. Just put > the all the AuthKit middleware right at the end of the middleware > stack before the return statement and after the Cascade and then it > should work. (This is explained in the updated documentation). > > On Oct 14, 4:04 pm, Steven <[EMAIL PROTECTED]> wrote: > > > I'm going through the tutorials athttp://pylonsbook.comandhave 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 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---