Relative products path not compatible with Five
Bug #326148 reported by
Malthe Borch
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Fix Released
|
Medium
|
Tres Seaver |
Bug Description
In a deployment where zope.conf is not autogenerated, it's often convenient to express paths relative to the main deployment directory. However, the logic in Five that loads configuration files (ZCML) incorrectly handles products with a relative module path (__file__).
Attached is a patch that fixes the situation in Products.Five; it may not be the correct place to patch.
Changed in zope2: | |
status: | Confirmed → Fix Released |
To post a comment you must log in.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Malthe wrote:
> Public bug reported:
>
> In a deployment where zope.conf is not autogenerated, it's often
> convenient to express paths relative to the main deployment directory.
> However, the logic in Five that loads configuration files (ZCML)
> incorrectly handles products with a relative module path (__file__).
>
> Attached is a patch that fixes the situation in Products.Five; it may
> not be the correct place to patch.
Maybe the better place in in the 'App.Products' bits which calls the n.install_ product) .
product's 'initialize' at startup (OFS.Applciatio
A test would be nice, too. ;)
Tres. ======= ======= ======= ======= ======= ======= ======= ======= ==== palladion. com enigmail. mozdev. org
- --
=======
Tres Seaver +1 540-429-0999 <email address hidden>
Palladion Software "Excellence by Design" http://
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://
iD8DBQFJjDhz+ gerLs4ltQ4RAuyv AJ9O8gji8xc9mmZ 5rqt5RhU3n56+ KQCgvlx+ vU9at4SYgz5DE=
7i+TjbyQT+
=lEIP
-----END PGP SIGNATURE-----