Re: [Zope-dev] Relative Imports: PEP-328

2008-10-14 Thread Sidnei da Silva
FWIW, I've done that now. On Wed, Oct 8, 2008 at 9:43 AM, Philipp von Weitershausen [EMAIL PROTECTED] wrote: El 8 Oct 2008, a las 14:23 , Sidnei da Silva escribió: On Wed, Oct 8, 2008 at 8:53 AM, Philipp von Weitershausen [EMAIL PROTECTED] wrote: Sidnei da Silva wrote: I'm trying to fix

Re: [Zope-dev] Relative Imports: PEP-328

2008-10-08 Thread Philipp von Weitershausen
El 8 Oct 2008, a las 14:23 , Sidnei da Silva escribió: 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

Re: [Zope-dev] Relative Imports: PEP-328

2008-10-08 Thread Sidnei da Silva
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?

Re: [Zope-dev] Relative Imports: PEP-328

2008-10-08 Thread Philipp von Weitershausen
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: #

[Zope-dev] Relative Imports: PEP-328

2008-10-07 Thread Sidnei da Silva
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

Re: [Zope-dev] Relative Imports: PEP-328

2008-10-07 Thread Marius Gedminas
On Wed, Oct 08, 2008 at 12:14:29AM -0300, 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

Re: [Zope-dev] Relative Imports: PEP-328

2008-10-07 Thread Sidnei da Silva
On Wed, Oct 8, 2008 at 2:40 AM, Marius Gedminas [EMAIL PROTECTED] wrote: I'd suggest converting it to an absolute import from zope.documenttemplate.dt_util import parse_params, name_param So I thought at first. Except there is a problem: Inside 'DocumentTemplate' there's another