From 1cbcad7a12983fdc14ed9cbc8ff689c7ece84542 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 1 Jul 2012 00:56:37 +0200 Subject: [PATCH 1/4] Notifications stick to bottom --- couchpotato/static/style/main.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/static/style/main.css b/couchpotato/static/style/main.css index d86fbbd6..f5630f33 100644 --- a/couchpotato/static/style/main.css +++ b/couchpotato/static/style/main.css @@ -581,7 +581,7 @@ body > .spinner, .mask{ } .messages { - position: absolute; + position: fixed; right: 0; bottom: 0; padding: 2px; From d4c7a22be9276f0c1cadef752f9ef0d7d1947128 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 1 Jul 2012 01:16:29 +0200 Subject: [PATCH 2/4] Log didn't fit on one line --- couchpotato/core/plugins/log/static/log.css | 1 + 1 file changed, 1 insertion(+) diff --git a/couchpotato/core/plugins/log/static/log.css b/couchpotato/core/plugins/log/static/log.css index ec1f838c..222b8efa 100644 --- a/couchpotato/core/plugins/log/static/log.css +++ b/couchpotato/core/plugins/log/static/log.css @@ -59,6 +59,7 @@ width: 14%; color: lightgrey; padding: 3px 0; + font-size: 10px; } .page.log .container .time:last-child { display: none; } From 4a3d481e16eed4bb6d49f79e8dbdd207d93c63e1 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 1 Jul 2012 01:25:11 +0200 Subject: [PATCH 3/4] Encode logs. fix #496 --- couchpotato/core/plugins/log/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/plugins/log/main.py b/couchpotato/core/plugins/log/main.py index 83e190ab..e6ff1133 100644 --- a/couchpotato/core/plugins/log/main.py +++ b/couchpotato/core/plugins/log/main.py @@ -73,7 +73,7 @@ class Logging(Plugin): return jsonified({ 'success': True, - 'log': log, + 'log': toUnicode(log), 'total': total, }) From b7f1d28347df3fa60d6bd0fccb154fa8c1f03cde Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 1 Jul 2012 11:30:47 +0200 Subject: [PATCH 4/4] Do some default encoding on start. fix #520 --- couchpotato/core/logger.py | 2 +- couchpotato/environment.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/couchpotato/core/logger.py b/couchpotato/core/logger.py index 1f5206ac..8d8c9f59 100644 --- a/couchpotato/core/logger.py +++ b/couchpotato/core/logger.py @@ -48,7 +48,7 @@ class CPLog(object): else: msg = msg % ss(replace_tuple) except: - self.error('Failed encoding stuff to log: %s' % traceback.format_exc()) + self.logger.error(u'Failed encoding stuff to log: %s' % traceback.format_exc()) if not Env.get('dev'): diff --git a/couchpotato/environment.py b/couchpotato/environment.py index e804170d..d8c03c7c 100644 --- a/couchpotato/environment.py +++ b/couchpotato/environment.py @@ -11,7 +11,7 @@ class Env(object): _appname = 'CouchPotato' ''' Environment variables ''' - _encoding = '' + _encoding = 'UTF-8' _debug = False _dev = False _settings = Settings()