1. Dan Jacob
  2. pyramid_mailer
Issue #5 duplicate

bool settings extracted as strings : 'False' is True.

Christophe Combelles
created an issue

Hi, I'm getting the follwing stacktrace using pyramid_mailer. It comes from mail.tls being extracted as 'False' instead of False, when I set mail.tls = False in the deploy.ini, and 'False' is True.

{{{ Exception happened during processing of request from ('127.0.0.1', 51027) Traceback (most recent call last): File "/home/ccomb/.buildout/eggs/Paste-1.7.5.1-py2.7.egg/paste/httpserver.py", line 1068, in process_request_in_thread self.finish_request(request, client_address) File "/usr/lib/python2.7/SocketServer.py", line 323, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/lib/python2.7/SocketServer.py", line 638, in init self.handle() File "/home/ccomb/.buildout/eggs/Paste-1.7.5.1-py2.7.egg/paste/httpserver.py", line 442, in handle BaseHTTPRequestHandler.handle(self) File "/usr/lib/python2.7/BaseHTTPServer.py", line 340, in handle self.handle_one_request() File "/home/ccomb/.buildout/eggs/Paste-1.7.5.1-py2.7.egg/paste/httpserver.py", line 437, in handle_one_request self.wsgi_execute() File "/home/ccomb/.buildout/eggs/Paste-1.7.5.1-py2.7.egg/paste/httpserver.py", line 287, in wsgi_execute self.wsgi_start_response) File "/home/ccomb/.buildout/eggs/Paste-1.7.5.1-py2.7.egg/paste/urlmap.py", line 203, in call return app(environ, start_response) File "/home/ccomb/.buildout/eggs/Beaker-1.6.3-py2.7.egg/beaker/middleware.py", line 155, in call return self.wrap_app(environ, session_start_response) File "/home/dadafkas/projets/showroom/showroom/showroom/proxy.py", line 54, in call return self.app(environ, start_response) File "/home/ccomb/.buildout/eggs/pyramid-1.3.2-py2.7.egg/pyramid/router.py", line 187, in call response = self.handle_request(request) File "/home/ccomb/.buildout/eggs/pyramid-1.3.2-py2.7.egg/pyramid/tweens.py", line 20, in excview_tween response = handler(request) File "/home/ccomb/.buildout/eggs/pyramid_tm-0.4-py2.7.egg/pyramid_tm/init.py", line 102, in tm_tween return response File "/home/ccomb/.buildout/eggs/transaction-1.3.0-py2.7.egg/transaction/_manager.py", line 116, in exit self.commit() File "/home/ccomb/.buildout/eggs/transaction-1.3.0-py2.7.egg/transaction/_manager.py", line 107, in commit return self.get().commit() File "/home/ccomb/.buildout/eggs/transaction-1.3.0-py2.7.egg/transaction/_transaction.py", line 354, in commit reraise(t, v, tb) File "/home/ccomb/.buildout/eggs/transaction-1.3.0-py2.7.egg/transaction/_transaction.py", line 345, in commit self._commitResources() File "/home/ccomb/.buildout/eggs/transaction-1.3.0-py2.7.egg/transaction/_transaction.py", line 493, in _commitResources reraise(t, v, tb) File "/home/ccomb/.buildout/eggs/transaction-1.3.0-py2.7.egg/transaction/_transaction.py", line 475, in _commitResources rm.tpc_finish(self) File "/home/ccomb/.buildout/eggs/repoze.sendmail-3.2-py2.7.egg/repoze/sendmail/delivery.py", line 70, in tpc_finish self.callable(*self.args) File "/home/ccomb/.buildout/eggs/repoze.sendmail-3.2-py2.7.egg/repoze/sendmail/mailer.py", line 70, in send raise RuntimeError('TLS is not available but TLS is required') RuntimeError: TLS is not available but TLS is required

}}}