From ad1fdfdb3296f20e9604eade28fda017fe58a0ff Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Tue, 23 Sep 2014 11:14:15 +0200 Subject: [PATCH 1/4] add note about broken WXR (use xmllint to fix) --- docs/docs/quickstart.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/docs/quickstart.rst b/docs/docs/quickstart.rst index 4e8a458..126fe82 100644 --- a/docs/docs/quickstart.rst +++ b/docs/docs/quickstart.rst @@ -8,7 +8,6 @@ a quickstart quide that covers the most common setup. Sections covered: :local: :depth: 1 - Configuration ------------- @@ -68,8 +67,8 @@ on *Discussions* and select the *Export* tab. You'll receive an email with your comments. Unfortunately, Disqus does not export up- and downvotes. To export comments from your previous WordPress installation, go to *Tools*, -export your data. WordPress WXR import is quite new and may not work for you; -please report any failures. +export your data. It has been reported that WordPress may generate broken XML. +Try to repair the file using ``xmllint`` before you continue with the import. Now import the XML dump: From 6a3a9ea114417b344caeb88c0cd1c8921b67a1ff Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Thu, 25 Sep 2014 13:29:24 +0200 Subject: [PATCH 2/4] SMTP authentication uses bytes, not unicode, fixes #126 Encode configuration variables as ascii, ignoring non-ascii characters (Python's smtplib is not yet able to support the UTF8SMTP). --- CHANGES.rst | 3 ++- isso/ext/notifications.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index ed11621..1291030 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,7 +4,8 @@ Changelog for Isso 0.9.7 (unreleased) ------------------ -- Nothing changed yet. +- fix SMTP authentication using CRAM-MD5 (incorrect usage of + `smtplib`), #126 0.9.6 (2014-08-18) diff --git a/isso/ext/notifications.py b/isso/ext/notifications.py index cdddcea..46663bc 100644 --- a/isso/ext/notifications.py +++ b/isso/ext/notifications.py @@ -66,8 +66,8 @@ class SMTP(object): self.client.starttls(); if self.conf.get('username') and self.conf.get('password'): - self.client.login(self.conf.get('username'), - self.conf.get('password')) + self.client.login(self.conf.get('username').encode('ascii', errors='ignore'), + self.conf.get('password').encode('ascii', errors='ignore')) return self.client From 278f5c74bcd5b9068b0c3e4ccbad974411716056 Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Thu, 25 Sep 2014 13:35:50 +0200 Subject: [PATCH 3/4] Preparing release 0.9.7 --- CHANGES.rst | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 1291030..5b88b01 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,7 +1,7 @@ Changelog for Isso ================== -0.9.7 (unreleased) +0.9.7 (2014-09-25) ------------------ - fix SMTP authentication using CRAM-MD5 (incorrect usage of diff --git a/setup.py b/setup.py index 46163c0..e88f3e4 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ else: setup( name='isso', - version='0.9.7.dev0', + version='0.9.7', author='Martin Zimmermann', author_email='info@posativ.org', packages=find_packages(), From 1bfd4fb916e94d4753f1fcee951836a22b609ec7 Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Thu, 25 Sep 2014 13:35:58 +0200 Subject: [PATCH 4/4] Back to development: 0.9.8 --- CHANGES.rst | 6 ++++++ setup.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 5b88b01..0490299 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,12 @@ Changelog for Isso ================== +0.9.8 (unreleased) +------------------ + +- Nothing changed yet. + + 0.9.7 (2014-09-25) ------------------ diff --git a/setup.py b/setup.py index e88f3e4..d6da1df 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ else: setup( name='isso', - version='0.9.7', + version='0.9.8.dev0', author='Martin Zimmermann', author_email='info@posativ.org', packages=find_packages(),