On 27 Dec 2005 14:10:32 -0200, Jorge Godoy <[EMAIL PROTECTED]> wrote:
>
> Kevin Dangoor <[EMAIL PROTECTED]> writes:
>
> > Ahh... That is basically the same thing. Did you try server.webpath?
>
> Nope.  I didn't.  I'll try it again.
>
> > We should be able to change turbogears.url to include the server info
> > from cherrypy (that Elvelind mentioned) if there's no server.webpath
> > set and you request an absolute url (something starting with "/").
>
> Hmmm...  This would eliminate the need of setting up server.webpath, wouldn't
> it?

server.webpath is actually less about setting the host and more about
the stuff that comes after the host but before TurboGears.

http://foo.bar/path/to/turbogears/YourController/doSomething

that "/path/to/turbogears" part needs to be there on absolute URLs.

server.webpath also (in svn) should remove the /path/to/turbogears
part so that CherryPy doesn't get confused.

Kevin

--
Kevin Dangoor
Author of the Zesty News RSS newsreader

email: [EMAIL PROTECTED]
company: http://www.BlazingThings.com
blog: http://www.BlueSkyOnMars.com

Reply via email to