diff --git a/src/libprs500/trac/plugins/Changelog.py b/src/libprs500/trac/plugins/Changelog.py index af1597f3d5..f6df952133 100644 --- a/src/libprs500/trac/plugins/Changelog.py +++ b/src/libprs500/trac/plugins/Changelog.py @@ -12,8 +12,8 @@ from trac.wiki.macros import WikiMacroBase from trac.util import Markup -#SVN_PATH = 'https://svn.kovidgoyal.net/code/libprs500/trunk' -SVN_PATH = 'file:///svn/code/libprs500/trunk' +SVN_PATH = 'https://svn.kovidgoyal.net/code/libprs500/trunk' +#SVN_PATH = 'file:///svn/code/libprs500/trunk' def svn_log_to_txt(): cl = pysvn.Client() @@ -36,7 +36,7 @@ def svn_log_to_txt(): current_version = False for entry in log: msg = entry['message'].strip() - msg = re.sub(r'\#(\d+)', r'[ticket:\1 Ticket \1]', msg) + msg = re.sub(ur'\#(\d+)', r'[ticket:\1 Ticket \1]', msg) if not msg: continue match = version_pat.search(msg) @@ -52,7 +52,7 @@ def svn_log_to_txt(): class ChangeLogMacro(WikiMacroBase): def expand_macro(self, formatter, name, args): - txt = svn_log_to_txt() + txt = svn_log_to_txt().encode('ascii', 'xmlcharrefreplace') out = StringIO() Formatter(formatter.env, formatter.context).format(txt, out) return Markup(out.getvalue()) diff --git a/src/libprs500/trac/plugins/templates/binary.html b/src/libprs500/trac/plugins/templates/binary.html index c3560f8d3c..819be9ec45 100644 --- a/src/libprs500/trac/plugins/templates/binary.html +++ b/src/libprs500/trac/plugins/templates/binary.html @@ -18,7 +18,7 @@

$installer_name - (Version: $version) + (Version: $version [wiki:Changelog Change log])

While you wait for the download to complete, please consider donating to support the development of ${app}. diff --git a/src/libprs500/trac/plugins/templates/distro.html b/src/libprs500/trac/plugins/templates/distro.html index 94e29b8dbd..1edf321901 100644 --- a/src/libprs500/trac/plugins/templates/distro.html +++ b/src/libprs500/trac/plugins/templates/distro.html @@ -14,6 +14,7 @@

$title

+ See the [wiki:Changelog Change log] for the latest version.
First verify that you have a sufficiently new installation of python
python --version
should return at least 2.5.1