-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On July 24, 2003 06:48 am, SourceForge.net wrote:

> result[child.name.encode(locale)].append(handler._call(child))
>   File "src/tv/xmltv.py", line 216, in _call
>     return getattr(self,
> string.replace(node.name.encode(), '-', '_'))(node)
>   File "src/tv/xmltv.py", line 102, in url
>     return _ChannelHandler.url(self, node)
> TypeError: unbound method url() must be called with
> _ChannelHandler instance as first argument (got
> _ProgrammeHandler instance instead)

This is my bug.

I've attached a patch to fix it.

- -- 
James Oakley
[EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQE/NqG5Ktn0F7+/lLMRAlLZAKC5htW2WHuN808SrZveG3VaYUecNgCg1X6P
6cALZTTliLFojZHXrPrGyuU=
=a5sM
-----END PGP SIGNATURE-----
--- xmltv.py	2003-08-09 14:30:00.000000000 -0300
+++ xmltv.py	2003-08-10 16:47:08.000000000 -0300
@@ -105,10 +105,14 @@
             return None
 
     def icon(self, node):
-        return _ChannelHandler.icon(self, node)
+        data = {}
+        for attr in (u'src', u'width', u'height'):
+            if node.attrs.has_key(('', attr)):
+                data[attr.encode(locale)] = _getxmlattr(node, attr)
+        return data
 
     def url(self, node):
-        return _ChannelHandler.url(self, node)
+        return node.textof()
 
     def country(self, node):
         return _readwithlang(node)

Reply via email to