Lexech / project-valerie

Automatically exported from code.google.com/p/project-valerie
0 stars 0 forks source link

r1237 Webinterface kein Global Settings #515

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Global Settings im Webinterface erzeugt Fehler.

web.Server Traceback (most recent call last):
<type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xc3 in 
position 16: ordinal not in range(128)

/usr/lib/python2.6/site-packages/twisted/web/server.py, line 150 in process
148
149
150
151
/usr/lib/python2.6/site-packages/twisted/web/server.py, line 157 in render
155
156
157
158
/usr/lib/python2.6/site-packages/twisted/web/resource.py, line 190 in render
188
189
190
191
/usr/lib/enigma2/python/Plugins/Extensions/ProjectValerie/DMC_Plugins/DMC_WebInt
erfaceExtras/core/WebMainActions.py, line 514 in render_GET
512class GlobalSetting (Resource):
513        def render_GET(self, request):
514                return self.action(request)
515
Locals
self    
Plugins.Extensions.ProjectValerie.DMC_Plugins.DMC_WebInterfaceExtras.core.WebMai
nActions.GlobalSetting instance @ 0x1c33eec
<Plugins.Extensions.ProjectValerie.DMC_Plugins.DMC_WebInterfaceExtras.core.WebMa
inActions.GlobalSetting instance at 0x1c33eec>
request 
twisted.web.server.Request instance @ 0x91e9cc
<GET /globalSettings HTTP/1.1>
Globals
GlobalSetting   <class 
Plugins.Extensions.ProjectValerie.DMC_Plugins.DMC_WebInterfaceExtras.core.WebMai
nActions.GlobalSetting at 0x170ee6c>
Resource    <class twisted.web.resource.Resource at 0x14e929c>
/usr/lib/enigma2/python/Plugins/Extensions/ProjectValerie/DMC_Plugins/DMC_WebInt
erfaceExtras/core/WebMainActions.py, line 526 in action
524                finalOutput = WebHelper().getHtmlCore("Options" , True, 
"Global")
525
526                tableBody = self.buildTableGlobal("options.global")
527                finalOutput = finalOutput.replace("<!-- CUSTOM_TBODY_GLOBAL 
-->", tableBody)
Locals
finalOutput '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n<html 
xmlns="http://www.w3.org/1999/xhtml">\r\n<head>\r\n<title>Project 
Valerie</title>\r\n<meta http-equiv="Content-Type" content="text/html; 
charset=utf-8" />\r\n<link href="/content/global/css/main.css" rel="stylesheet" 
type="text/css" />\r\n<link href="/content/global/css/datatable.css" 
rel="stylesheet" type="text/css" />\r\n<link 
href="/content/global/css/themeroller.css" rel="stylesheet" type="text/css" 
/>\r\n<link rel="shortcut icon" type="/web-data/image/x-icon" 
href="/content/global/img/favicon.ico">\r\n</head>\r\n\r\n<body>\r\n\r\n<script 
src="/content/global/js/jquery.js" type="text/javascript"></script> \r\n<script 
src="/content/global/js/jquery.dataTables.min.js" 
type="text/javascript"></script> \r\n<script 
src="/content/global/js/jquery.themeRoller.min.js" 
type="text/javascript"></script>\r\n<script 
src="/content/global/js/jquery.progressbar.min.js" 
type="text/javascript"></script>\r\n<script src="/content/global/js/valerie.js" 
type="text/javascript"></script> \r\n\r\n<script></script>\r\n\r\n<div 
id="container">\r\n\t\r\n\t<div id="mainmenu"><div id="banner"><img 
alt="Dreambox Web" 
src="/content/global/img/dreamboxweb.png"></div>\r\n\r\n<ul>\r\n\t<li><a 
href="/">Home</a></li>\r\n\t<li><a href="/movies">Movies</a></li>\r\n\t<li><a 
href="/tvshows">TvShows</a></li>\r\n\t<li><a 
href="/failed">Failed</a></li>\r\n\t<li><a 
href="/sync">Sync</a></li>\t\r\n\t<li><a 
href="/options">Options</a></li>\r\n\t<li><a 
href="/extras">Extras</a></li>\r\n\t<li><a 
href="/logs">Logs</a></li>\r\n</ul>\r</div>\r\n\t\r\n\t<div 
id="submenu"><ul>\r\n\t<li><a href="/globalSettings">Global 
Settings</a></li>\r\n\t<li><a href="/syncSettings">Sync 
Settings</a></li>\r\n</ul>\r</div>\r\n\t\r\n\t<div id="content"><div 
class="textheader">Options</div>\t\n\n\t<div class="subheader">Global 
Settings</div>\n\n\t<div class="text">\n\t\t<table align="left" 
id="settings_global">\n\t\t\t<tbody>\n\t\t\t\t<!-- CUSTOM_TBODY_GLOBAL 
-->\n\t\t\t</tbody>\n\t\t</table>\n\t</div>\n</div></div>\r\n\t\r\n</div>\t\r\n\
r\n</body>\r\n</html>\r'
self    
Plugins.Extensions.ProjectValerie.DMC_Plugins.DMC_WebInterfaceExtras.core.WebMai
nActions.GlobalSetting instance @ 0x1c33eec
<Plugins.Extensions.ProjectValerie.DMC_Plugins.DMC_WebInterfaceExtras.core.WebMa
inActions.GlobalSetting instance at 0x1c33eec>
Globals
WebHelper   <class 
Plugins.Extensions.ProjectValerie.DMC_Plugins.DMC_WebInterfaceExtras.core.WebHel
per.WebHelper at 0x170ed1c>
Options <class 
Plugins.Extensions.ProjectValerie.DMC_Plugins.DMC_WebInterfaceExtras.core.WebMai
nActions.Options at 0x170ee3c>
/usr/lib/enigma2/python/Plugins/Extensions/ProjectValerie/DMC_Plugins/DMC_WebInt
erfaceExtras/core/WebMainActions.py, line 551 in buildTableGlobal
549                                                                </tr>
550                                                        </form>
551                                        """ % (configType, entry[0], 
entry[0], tag)
552
Locals
entry   ('Assistent beim n\xc3\xa4chsten Start anzeigen', 
<Components.config.ConfigYesNo object at 0x16306ec>)
configType  'checkbox'
tag '<input id="value" name="value" type="checkbox" size="50" ></input>'
<type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xc3 in 
position 16: ordinal not in range(128)

Original issue reported on code.google.com by mo.mohrh...@gmail.com on 25 Mar 2012 at 5:44

GoogleCodeExporter commented 8 years ago
Hi,

ich habe gerade mal versucht, den Fehler mit r1237 nachzustellen - kann ihn 
aber bei mir leider nicht reproduzieren. :-(

Aus Deinem Trace sehe ich nur, dass es wohl ein Problem mit der 
Zeichencodierung gibt - aber wo genau und was da das Problem ist, kann ich 
leider nicht sagen.

Falls das Problem noch aktuell ist, müssen wir warten, bis jemand anderes mal 
einen Blick auf die Sache werfen kann...

Gruß, Erik 

Original comment by erik.for...@gmail.com on 27 Mar 2012 at 6:12