Unfortunately the fix you suggested causes another problem for me. I
have composite app setup as follows:
[composite:main]
use = egg:Paste#urlmap
/ = config:main/development.ini
/app1 = config:app1/development.ini
/app2 = config:app2/development.ini
..and for app2 I specify login form as:
authkit.form.template.obj = app2.lib.auth:render_signin
..where render_signin is:
def render_signin():
result = render('/signin.tmpl')
result = result.replace('%', '%%').replace('SIGNIN_ACTION', '%s')
return result
Now everytime the signin form is rendered the prefix "/app2" is lost
(i.e. missing from all urls in the rendered page).
Any ideas?
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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---