__The short story__:

I would like to recommend to all Product developers
that for Product initialization, they please the
statement:

from App.ImageFile import ImageFile

instead of:

from ImageFile import ImageFile


__The long story__:

A colleague of mine recently went through much
trouble, which eventually boiled down to a name-
clash with piddle/PIL.

Zope imports the name ImageFile into it's global
namespace during startup.  A lot of Products take
advantage of this during Product initialization,
by importing the name using:

"form ImageFile import ImageFile"

The Zope source, though, states explicitly that

"this module will disappear in the future".

At the very least, the following Products have trouble
(and I suspect many more, as well):

TinyTablePlus
MetaPublisher
LDAPAdapter
ZDconfera
ZSyncer
ZOracleDA
NISUserFolder

Thanks,

Ziniti


_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to