On Wed, Oct 8, 2008 at 8:53 AM, Philipp von Weitershausen <[EMAIL PROTECTED]> wrote: > Sidnei da Silva wrote: >> >> I'm trying to fix some import errors, which seem to be related to PEP-328. >> >> I'm fixing those errors this way, though I don't know if that's the >> recommended way of fixing it. Thoughts? >> >> """ >> try: >> from DT_Util import parse_params, name_param >> except ImportError: >> # See PEP-328 >> from .DT_Util import parse_params, name_param >> """ > > This will generate a SyntaxError in Python 2.4. So unless we *require* > Python >= 2.5, this won't work.
Yuck. I hadn't thought of that. Any other suggestions? Like, using zope.documenttemplate? :) -- Sidnei da Silva Enfold Systems http://enfoldsystems.com Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214 _______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )