Schischu / project-valerie

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

Adding a new episode manually fails #313

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Host: VU+ DUO, VTI image version=1000201106021452

Version: project-valerie_rev984_mipsel_oe16.ipk

Problem:
Adding a new episode manually shows the error below.

In earlier versions it worked.

Thank you !

web.Server Traceback (most recent call last):

<type 'exceptions.UnboundLocalError'>: local variable 'm' referenced before 
assignment
/usr/lib/python2.6/site-packages/twisted/web/server.py, line 150 in process
148    try:
149      resrc = self.site.getResourceFor(self)
150      self.render(resrc)
151    except:
Self
site    
twisted.web.server.Site instance @ 0x9cbbc0 <twisted.web.server.Site instance 
at 0x9cbbc0>
Locals
resrc   
Plugins.Extensions.ProjectValerie.DMC_Plugins.DMC_WebInterfaceExtras.core.WebSub
Actions.MediaForm instance @ 0x9cbb20 
<Plugins.Extensions.ProjectValerie.DMC_Plugins.DMC_WebInterfaceExtras.core.WebSu
bActions.MediaForm instance at 0x9cbb20>
self    
twisted.web.server.Request instance @ 0x23aa3f0 <GET 
/mediaForm?type=isEpisode&mode=showManualAddForm&ParentId=200003 HTTP/1.1>
/usr/lib/python2.6/site-packages/twisted/web/server.py, line 157 in render
155  def render(self, resrc):
156    try:
157      body = resrc.render(self)
158    except UnsupportedMethod, e:
Locals
resrc   
Plugins.Extensions.ProjectValerie.DMC_Plugins.DMC_WebInterfaceExtras.core.WebSub
Actions.MediaForm instance @ 0x9cbb20 
<Plugins.Extensions.ProjectValerie.DMC_Plugins.DMC_WebInterfaceExtras.core.WebSu
bActions.MediaForm instance at 0x9cbb20>
self    
twisted.web.server.Request instance @ 0x23aa3f0 <GET 
/mediaForm?type=isEpisode&mode=showManualAddForm&ParentId=200003 HTTP/1.1>
Globals
UnsupportedMethod   <class 'twisted.web.server.UnsupportedMethod'>
/usr/lib/python2.6/site-packages/twisted/web/resource.py, line 190 in render
188      from twisted.web.server import UnsupportedMethod
189      raise UnsupportedMethod(getattr(self, 'allowedMethods', ()))
190    return m(request)
191
Locals
m   <bound method MediaForm.render_GET of 
<Plugins.Extensions.ProjectValerie.DMC_Plugins.DMC_WebInterfaceExtras.core.WebSu
bActions.MediaForm instance at 0x9cbb20>>
self    
Plugins.Extensions.ProjectValerie.DMC_Plugins.DMC_WebInterfaceExtras.core.WebSub
Actions.MediaForm instance @ 0x9cbb20 
<Plugins.Extensions.ProjectValerie.DMC_Plugins.DMC_WebInterfaceExtras.core.WebSu
bActions.MediaForm instance at 0x9cbb20>
request 
twisted.web.server.Request instance @ 0x23aa3f0 <GET 
/mediaForm?type=isEpisode&mode=showManualAddForm&ParentId=200003 HTTP/1.1>
/usr/lib/enigma2/python/Plugins/Extensions/ProjectValerie/DMC_Plugins/DMC_WebInt
erfaceExtras/core/WebSubActions.py, line 31 in render_GET
29class MediaForm(Resource):
30        def render_GET(self, request):
31                return self.action(request)
32
Locals
self    
Plugins.Extensions.ProjectValerie.DMC_Plugins.DMC_WebInterfaceExtras.core.WebSub
Actions.MediaForm instance @ 0x9cbb20 
<Plugins.Extensions.ProjectValerie.DMC_Plugins.DMC_WebInterfaceExtras.core.WebSu
bActions.MediaForm instance at 0x9cbb20>
request 
twisted.web.server.Request instance @ 0x23aa3f0 <GET 
/mediaForm?type=isEpisode&mode=showManualAddForm&ParentId=200003 HTTP/1.1>
Globals
Resource    <class twisted.web.resource.Resource at 0x14587e0>
MediaForm   <class 
Plugins.Extensions.ProjectValerie.DMC_Plugins.DMC_WebInterfaceExtras.core.WebSub
Actions.MediaForm at 0x178ff60>
/usr/lib/enigma2/python/Plugins/Extensions/ProjectValerie/DMC_Plugins/DMC_WebInt
erfaceExtras/core/WebSubActions.py, line 160 in action
158
159                elif type == "isTvShow" or type == "isEpisode":
160                        if os.path.isfile(mediaFolderPath + m.TheTvDbId + 
"_poster_195x267.png"):
161                                image = """<img id="duck_img" src="%s" 
width="78" height="107" alt="n/a"></img>""" % ("/media/" + m.TheTvDbId + 
"_poster_195x267.png")
Locals
image   u''
mediaFolderPath '/hdd/valerie/media/'
type    'isEpisode'
Globals
os  <module 'os' from '/usr/lib/python2.6/os.pyo'>

<type 'exceptions.UnboundLocalError'>: local variable 'm' referenced before 
assignment

Original issue reported on code.google.com by xxom...@googlemail.com on 19 Sep 2011 at 6:07

Attachments:

GoogleCodeExporter commented 9 years ago
please try nightly 1004 

this should fix the error :-)

please let us know if it works

thx

Original comment by DonDavici@gmail.com on 19 Sep 2011 at 6:10

GoogleCodeExporter commented 9 years ago
It works with rev1004 !

But automatic update did not work, so I still had rev984.

I will check whether upgrading works with the new version.

Thanks again 

Original comment by xxom...@googlemail.com on 20 Sep 2011 at 6:26

GoogleCodeExporter commented 9 years ago
did you set nightly as updatemode in the settings?

if not this could explain why the update doesn't work ;-)

Original comment by DonDavici@gmail.com on 20 Sep 2011 at 6:29

GoogleCodeExporter commented 9 years ago
No, it was standart. Now I have set it to nightly and will watch if it works.

Thanks !

Original comment by xxom...@googlemail.com on 20 Sep 2011 at 8:25

GoogleCodeExporter commented 9 years ago
did it work?

Original comment by DonDavici@gmail.com on 20 Sep 2011 at 1:57

GoogleCodeExporter commented 9 years ago
Yes it works !

Thanks !

Original comment by xxom...@googlemail.com on 20 Sep 2011 at 5:05

GoogleCodeExporter commented 9 years ago
Thanks for the feedback... Glad to hear it finally works as expected! :-)

=> verified fixed...

Original comment by erik.for...@gmail.com on 20 Sep 2011 at 7:52