Patch to show error when there's a permissions problem
Philip M. White
pmw at qnan.org
Sun Aug 19 12:16:46 EST 2007
Please consider merging my Bazaar branch from
http://www.qnan.org/~pmw/tmp/planet-devel
This fixes the problem that I experienced when the permissions of my
Planet installation were too strict.
The Planet attempts to write the compiled versions of the templates to
the disk, and throws TemplateError with an appropriate error message
when this is not possible.
When this exception is handled in __init__.py, the error message is not
displayed to the user. Instead, the code simply attempts to process the
basename() of the template file which fails as well. Thus, the first
error message that the user encounters when the permissions are too
restrictive is that the template file (using the mangled path) does not
exist.
Now when the exception is caught, the error message is displayed (with
additional explanation of what's about to happen) before basename() is
applied to the template filename and the operation is retried.
--
Philip
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : /archives/devel/attachments/20070818/ff4688ce/attachment.pgp
More information about the devel
mailing list