Compare commits
3 Commits
master
...
legacy/0.3
Author | SHA1 | Date | |
---|---|---|---|
![]() |
9d3b9dffc2 | ||
![]() |
d56cf5c22f | ||
![]() |
c28ee3120c |
10
CHANGES.rst
10
CHANGES.rst
@ -1,8 +1,14 @@
|
|||||||
Changelog for Isso
|
Changelog for Isso
|
||||||
==================
|
==================
|
||||||
|
|
||||||
0.3 (2013-11-01)
|
0.3.2 (unreleased)
|
||||||
----------------
|
------------------
|
||||||
|
|
||||||
|
- Nothing changed yet.
|
||||||
|
|
||||||
|
|
||||||
|
0.3.1 (2013-11-02)
|
||||||
|
------------------
|
||||||
|
|
||||||
- improve initial comment loading performance in the client
|
- improve initial comment loading performance in the client
|
||||||
- cache slow REST requests, see #18
|
- cache slow REST requests, see #18
|
||||||
|
@ -93,7 +93,7 @@ class Config:
|
|||||||
"purge-after = 30d",
|
"purge-after = 30d",
|
||||||
"[server]",
|
"[server]",
|
||||||
"host = localhost", "port = 8080", "reload = off",
|
"host = localhost", "port = 8080", "reload = off",
|
||||||
"[SMTP]",
|
"[smtp]",
|
||||||
"username = ", "password = ",
|
"username = ", "password = ",
|
||||||
"host = localhost", "port = 465", "ssl = on",
|
"host = localhost", "port = 465", "ssl = on",
|
||||||
"to = ", "from = ",
|
"to = ", "from = ",
|
||||||
|
@ -41,12 +41,12 @@ class Connection(object):
|
|||||||
self.conf = conf
|
self.conf = conf
|
||||||
|
|
||||||
def __enter__(self):
|
def __enter__(self):
|
||||||
self.server = (SMTP_SSL if self.conf.getboolean('SMTP', 'ssl') else SMTP)(
|
self.server = (SMTP_SSL if self.conf.getboolean('smtp', 'ssl') else SMTP)(
|
||||||
host=self.conf.get('SMTP', 'host'), port=self.conf.getint('SMTP', 'port'))
|
host=self.conf.get('smtp', 'host'), port=self.conf.getint('smtp', 'port'))
|
||||||
|
|
||||||
if self.conf.get('SMTP', 'username') and self.conf.get('SMTP', 'password'):
|
if self.conf.get('smtp', 'username') and self.conf.get('smtp', 'password'):
|
||||||
self.server.login(self.conf.get('SMTP', 'username'),
|
self.server.login(self.conf.get('smtp', 'username'),
|
||||||
self.conf.get('SMTP', 'password'))
|
self.conf.get('smtp', 'password'))
|
||||||
|
|
||||||
return self.server
|
return self.server
|
||||||
|
|
||||||
@ -59,8 +59,8 @@ class SMTPMailer(object):
|
|||||||
def __init__(self, conf):
|
def __init__(self, conf):
|
||||||
|
|
||||||
self.conf = conf
|
self.conf = conf
|
||||||
self.from_addr = conf.get('SMTP', 'from')
|
self.from_addr = conf.get('smtp', 'from')
|
||||||
self.to_addr = conf.get('SMTP', 'to')
|
self.to_addr = conf.get('smtp', 'to')
|
||||||
|
|
||||||
# test SMTP connectivity
|
# test SMTP connectivity
|
||||||
with Connection(self.conf):
|
with Connection(self.conf):
|
||||||
|
2
setup.py
2
setup.py
@ -15,7 +15,7 @@ if sys.version_info < (3, 0):
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='isso',
|
name='isso',
|
||||||
version='0.3',
|
version='0.3.2.dev0',
|
||||||
author='Martin Zimmermann',
|
author='Martin Zimmermann',
|
||||||
author_email='info@posativ.org',
|
author_email='info@posativ.org',
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
|
Loading…
Reference in New Issue
Block a user