[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TV] Python parser and GNOME applet



On Fri, Jun 11, 2004 at 08:36:13PM +0100, Andrew Flegg wrote:
> In list.comp.tv, Simon wrote:
> >
> > At http://www.sphart.uklinux.net/bleb/bleb-20040611.tar.bz2
> > you can find some python code for parsing the bleb xml files,
> > and a GNOME applet to display Now and Next listings, and search on 
> > programme title and category.
> 
> On Debian I needed to apt-get install python2.3-gnome2, python2.3-xml
> and python2.3-egenix-mxdatetime and then it started.

I like package managers :)

> 
> Unfortunately, when clicking on the "TV" icon:
> 
> Traceback (most recent call last):
>   File "/home/andrew/bleb-20040611/bleb_applet.py", line 130, in
>   now_and_next
>       res = nowAndNext(self.cl)
> AttributeError: 'BlebApplet' object has no attribute 'cl'
> 
Sorry ... I just added reload, and using reload hid the bug ..

--- bleb_applet.py      2004-06-11 20:48:06.000000000 +0100
+++ bleb_applet.py~     2004-06-11 20:44:53.000000000 +0100
@@ -45,6 +45,8 @@
        # gnome.applet.Applet.__init__(self)
        self.__gobject_init__()
  
+       self.load_data()
+
        f = gtk.Frame()
  
        hb = gtk.HBox() # XXX orient magic to reparent into VBox
	        
Updated at the above url, also.

> > Thanks for the data source.
> 
> Thanks :-)
> 
> Cheers,
> 
> Andrew
> 
> -- 
> Andrew Flegg -- mailto:andrew@xxxxxxxx  |  http://www.bleb.org/
> 

simon
-- 
Simon Hart - simon@xxxxxxxxxxxxxxxxxx