On 10/15/05, Jeff Watkins <[EMAIL PROTECTED]> wrote:
>
> Although I've found a way around this, I don't seem to be able to use
> the url function with an absolute path. I get an AttributeError about
> a missing approot in cherrypy.request.
>
> And this is in the context of a request.

I would hazard a guess that this was code you had written for
TurboGears 0.5. It was not well documented (and I just fixed this in a
couple of spots), but TurboGears detects the application root by
looking for a class that extends turbogears.controllers.Root. tg-admin
quickstart makes the new Root class extend that class, so new projects
wouldn't have noticed an issue here.

In order to make things smoother, I've changed it so that the approot
is set to the site root by default. That should fix this error. If you
ultimately do want your application to be able to move around in the
URL hierarchy of a site, it would be a good idea to extend the
controllers.Root class.

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