On 1/17/06, Dan Jacob <[EMAIL PROTECTED]> wrote:
> WrongConfigValue: StaticFilter requires an absolute final path. Make
> static_filter.dir, .file, or .root absolute.
>
> If an absolute path is now required this would seem a backwards step,
> as it makes the apps less portable from one server to another. Is this
> just a temporary bug or shall I add it to the trac ?

Neither :)

It appears that CherryPy 2.2 specifically ensures that you have
absolute paths. There's probably a good reason for this change. You
should be able to convert your config files to the new format pretty
easily and then use the absfile function to get an absolute path to
your static files at runtime. To convert your file:

1) rename dev.cfg to devcfg.py and prod.cfg to prodcfg.py
2) change [pathname] to path("pathname")

Then, you can say
static_filter.dir = absfile("yourpackage", "static")

Kevin

Reply via email to