The only thing I can think of is that you aren't including redirect_to(),
which isn't included by default anymore.  That's located under "Import
changes" on the What's new (I know you said you followed it but it may have
slipped by).  http://wiki.pylonshq.com/pages/viewpage.action?pageId=11174779

Hope that helps,
Brian

On Wed, Nov 19, 2008 at 10:28 AM, Raoul Snyman <[EMAIL PROTECTED]>wrote:

>
> Hi all,
>
> I'm attempting to upgrade my Pylons app to 0.9.7, but I can't seem to
> get past the "302 you will now be redirected" problem.
>
> What I did was I created a totally new Pylons app, and then I started
> moving my controllers and models and things across. I'm not sure if
> this is the best way, but I figured it was most probably the easiest.
> I also read through the "What's new in 0.9.7" document and the
> "Upgrading" document on the wiki, and followed directions as much as I
> could.
>
> I've left map.minimize on False, and I added the extra lines in my
> routes.py file as per the documentation. I also made sure that my
> middleware.py file had the necessary lines. I also modified base.py
> and the BaseController class, because my authentication system checks
> for a valid user in the __before__ function.
>
> Now the problem comes in that when I hit the main page, my default
> controller sees that there's no user logged in and tries to redirect
> me to the login page. Except it just sits there saying "302 Found The
> resource was found at http://localhost:5000/member/login/; you should
> be redirected automatically." and never redirects me.
>
> routes.py: http://codepad.org/d4lpLxas
> middleware.py <http://codepad.org/d4lpLxasmiddleware.py>:
> http://codepad.org/kdnRbRpl
> base.py <http://codepad.org/kdnRbRplbase.py>: http://codepad.org/qIvkBnxK
>
> Any idea what am I doing wrong?
>
> --
> Raoul Snyman
> B.Tech Information Technology (Software Engineering)
> E-Mail:   [EMAIL PROTECTED]
> Web:      http://www.saturnlaboratories.co.za/
> Blog:      http://blog.saturnlaboratories.co.za/
> Mobile:   082 550 3754
> Registered Linux User #333298 (http://counter.li.org)
>
> >
>


-- 
Brian O'Connor

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

Reply via email to