I had an issue similar to #1, but I fixed it inadvertently while working on
something else, so I really don't know what I did to fix it.
My suggestions would be:
1) make sure to inherit Members from Controller (not RootController) -- as
mentioned above
2) check to see if your default method has something to do with it...perhaps
the base class "default" method does something that your overridden version
isn't doing? Unless I am mistaken, "/users/" would go thru the index
method, and "/users" would go thru the default method
for #2:
I'm really not sure what's going on here...I've seen issues like this when
running behind Apache, but I haven't seen this sort of behavior in a
standalone app (of course, I haven't done a redirect exactly like this
either).
As a workaround, have you tried using the full URL in the redirect?
Something like:
raise redirect('http://somesite.com/users/')
It's not a solution, but might help you work on other things while you mull
this one over.
You might also create the string in a separate line of code from the
redirection. It shouldn't make a difference, but when faced with a puzzling
problem, it's best to break it down to the simplest piece possible, IMO.
Kevin Horn
On 1/12/07, Bogdan Hlevca <[EMAIL PROTECTED]> wrote:
>
>
> Sorry guys, but you all got it wrong. I an running turbogears
> standalone and not behind a firewall.
> I still need to find a solution to this problem. I am surprised that
> there are not more people complaining about it.
>
> When I am talking about redirect I am talking about
> turbogears.redirect() which is a wrapper around cherrypy.HTTPRedirect.
>
>
> I tried to use both but I am getting the same behaviour.
>
> I looked into the inner working of cherrypy and server.socket_host to
> for ex www.mysite.org seemed like a good idea, but the turgogears
> parser didn't like it, it accepts only IP addresses.
>
> Does anyone have an idea how to solve this issue?
>
> Any help would be appreciated
> Bogdan
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---