On Thu, Jan 13, 2011 at 11:12:18PM -0800, tibi3384 wrote:
> Thanks for the clarification. Indeed that makes sense and I read about
> the behavior in the Guide to Pylons book as well. However this seems
> to complicate things even more for me, as the application does not
> contain any public folder, nor an index file. Nowhere in the
> application structure does any of these exist. And all the routings
> rules are:
>
> map.connect('/{controller}')
> map.connect('/{controller}/{action}')
> map.connect('/{controller}/{action}/{id}')
> map.connect('/xml/{controller}.{action}')
>
> None of which would actually explain the redirect. At this point, I'm
> guessing that some sort of authentication might be responsible for the
> automatic redirect, since after the login, i'm forwarded to a 404
> page. Each time afterward when accessing localhost:5000 I get a 404.
So, there could be a BaseController.__before__ method that checks for an
authenticated user and redirects if there isn't one.
Or there could be arbitrary middleware that does that before Pylons has
a chance to react.
I think the first is more likely.
Marius Gedminas
--
Basically, what "Ajax" means is "Javascript now works."
-- Paul Graham
signature.asc
Description: Digital signature
