-----BEGIN PGP SIGNED MESSAGE-----
Chris Withers wrote:
> Tres Seaver wrote:
>> Log message for revision 40036:
>> Avoid using __file__ where possible.
> Why? I use this all over the place so need to know why it's bad ;-)
The branch that checkin landed on is the one where I am trying to make
CMF trunk distributable as an egg. Products which want to be
distributed as eggs need to avoid using __file__ directly, and instead
rely on the 'pkg_resource' APIs supplied with Phillip Eby's setuptools
(this makes them "zip_safe").
CMF isn't quite there yet:
- Some of the tests play with __file__ in ways that are painful
to reproduce, and I haven't gotten there yet.
- The GenericSetup profile mechanism doesn't yet grok eggified
OTOH, the skins mechanism (on that branch) now works beautifully from
an eggified CMF.
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
Zope-CMF maillist - Zope-CMF@lists.zope.org
See http://collector.zope.org/CMF for bug reports and feature requests