Re: [Zope-dev] [Checkins] SVN: zope.sendmail/trunk/src/zope/sendmail/mailer.py gmail seems to burp nowadays on smtp quit, deep down in smtplib

2008-10-07 Thread Zvezdan Petkovic
On Oct 5, 2008, at 1:57 AM, Adam Groszer wrote: > Log message for revision 91759: > gmail seems to burp nowadays on smtp quit, deep down in smtplib > mail should be safely sent at this point "... deep down ... should be ..." These words do not sound very encouraging. > connection.sendm

Re: [Zope-dev] [Checkins] SVN: zope.sendmail/trunk/src/zope/sendmail/mailer.py try again with catching sslerror, thx Jens

2008-10-07 Thread Zvezdan Petkovic
On Oct 5, 2008, at 4:51 AM, Adam Groszer wrote: > connection.sendmail(fromaddr, toaddrs, message) > try: > connection.quit() > -except: > +except socket.sslerror: > +#something weird happened while quiting > pass This is better b

[Zope-dev] Zope Tests: 5 OK

2008-10-07 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list. Period Mon Oct 6 11:00:00 2008 UTC to Tue Oct 7 11:00:00 2008 UTC. There were 5 messages: 5 from Zope Tests. Tests passed OK --- Subject: OK : Zope-2.8 Python-2.3.6 : Linux From: Zope Tests Date: Mon Oct 6 20:52:56 EDT 2008 URL: http://m

Re: [Zope-dev] [Checkins] SVN: zope.sendmail/trunk/src/zope/sendmail/mailer.py try again with catching sslerror, thx Jens

2008-10-07 Thread Fred Drake
On Tue, Oct 7, 2008 at 11:00 AM, Zvezdan Petkovic <[EMAIL PROTECTED]> wrote: > However, are we _certain_ that the socket is closed after this? smtplib does *not* close the client socket if there's an exception while sending the quit message or processing the response. It could be best if connecti

[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

[Zope-dev] Python 2.6: 'with' in Interfaces

2008-10-07 Thread Sidnei da Silva
Trying to run some tests with Python 2.6 I stumbled on a problem that I need help with: an interface that has an attribute named 'with'. The interface in question is defined in zope.app.component.back35: class IAdapterRegistration(IComponentRegistration): ... with = schema.Tuple( titl

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] Python 2.6: 'with' in Interfaces

2008-10-07 Thread Marius Gedminas
On Wed, Oct 08, 2008 at 12:35:39AM -0300, Sidnei da Silva wrote: > Trying to run some tests with Python 2.6 I stumbled on a problem that > I need help with: an interface that has an attribute named 'with'. > > The interface in question is defined in zope.app.component.back35: > > class IAdapterRe

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 'Documen

[Zope-dev] [Fwd: [Bug 279981] Re: zope.app.testing use of 'with' keyword breaks with Python 2.6]

2008-10-07 Thread Andreas Jung
Who is committing code that is incompatible with Python 2.4? I think it is not acceptable - even for code on the trunk of a package. Andreas Original-Nachricht Betreff: [Bug 279981] Re: zope.app.testing use of 'with' keyword breaks with Python 2.6 Datum: Wed, 08 Oct 2008 04:1

Re: [Zope-dev] [Fwd: [Bug 279981] Re: zope.app.testing use of 'with' keyword breaks with Python 2.6]

2008-10-07 Thread Sidnei da Silva
I'm sorry Andreas but where did you find mention of code incompatible with Python 2.4? On Wed, Oct 8, 2008 at 3:15 AM, Andreas Jung <[EMAIL PROTECTED]> wrote: > > Who is committing code that is incompatible with Python 2.4? > I think it is not acceptable - even for code on the trunk of a package.