diff --git a/cps/admin.py b/cps/admin.py index 852ea5df..aee7fd09 100644 --- a/cps/admin.py +++ b/cps/admin.py @@ -529,7 +529,7 @@ def new_user(): content.locale = to_save["locale"] val = 0 - for key, _ in to_save.items(): + for key, __ in to_save.items(): if key.startswith('show'): val += int(key[5:]) content.sidebar_view = val diff --git a/cps/subproc_wrapper.py b/cps/subproc_wrapper.py index 64204a56..d8826111 100644 --- a/cps/subproc_wrapper.py +++ b/cps/subproc_wrapper.py @@ -37,6 +37,7 @@ def process_open(command, quotes=(), env=None, sout=subprocess.PIPE): else: if sys.version_info < (3, 0): exc_command = [x.encode(sys.getfilesystemencoding()) for x in command] + else: + exc_command = [x for x in command] - # return subprocess.Popen(exc_command, shell=False, stdout=subprocess.PIPE, universal_newlines=True, env=env) return subprocess.Popen(exc_command, shell=False, stdout=sout, universal_newlines=True, env=env) diff --git a/cps/templates/config_view_edit.html b/cps/templates/config_view_edit.html index ff71aa8a..a6601a58 100644 --- a/cps/templates/config_view_edit.html +++ b/cps/templates/config_view_edit.html @@ -119,10 +119,12 @@
{{_('Book')}} {{entry.series_index}} {{_('of')}} {{entry.series[0].name}}
+{{_('Book')}} {{entry.series_index}} {{_('of')}} {{entry.series[0].name}}
{% endif %} {% if entry.languages.__len__() > 0 %} @@ -157,7 +157,7 @@{{_('Publisher')}}: - {{entry.publishers[0].name}} + {{entry.publishers[0].name}}
Start Time: 2019-02-10 12:10:31.096065
+Start Time: 2019-05-12 18:51:22.511134
Stop Time: 2019-02-10 12:53:18.410539
+Stop Time: 2019-05-12 19:42:21.577115
Duration: 0:42:47.314474
+Duration: 0:50:59.065981
pt3.4: Incomming connection 127.0.0.1:40856 +pt3.4: Incomming connection 127.0.0.1:45566 Received: EHLO Received: AUTH User: name@host.com, Password: 10234 Received: MAIL Received: RCPT Received: DATA -('Receiving message from:', ('127.0.0.1', 40856)) -('Message addressed from:', '<name@host.com> size=507') +('Receiving message from:', ('127.0.0.1', 45566)) +('Message addressed from:', '<name@host.com> size=30377') ('Message addressed to :', ['a1@b.com']) -('Message length :', 506) +('Message length :', 30376) Received: QUIT