there is a bug on the debian downstream package that makes the manager
unusable for those who dont have python feedparser package , this is a
wrong behavior

this was added to the downstream package in the clearrss screenlet

try:
        import feedparser
except ImportError:
        dialog = gtk.MessageDialog(buttons=gtk.BUTTONS_CLOSE)
        dialog.set_markup("You don't have Feedparser installed! \nInstall 
python-feedparser or copy feedparser.py from rss/ folder to your screenlets 
folder.")
        dialog.run()
        dialog.destroy()
        print("You don't have Feedparser installed! \nInstall python-feedparser 
or copy feedparser.py from rss/ folder to your screenlets folder.")
        sys.exit()


this will make the manager to exit also , to avoid this please use the 
utils.is_manager_running_me() function to check if it is the manager or the 
actuall screenlet that is running

try:
        import feedparser
except ImportError:
        if utils.is_manager_running_me():
                print("You don't have Feedparser installed! \nInstall 
python-feedparser or copy feedparser.py from rss/ folder to your screenlets 
folder.")
        else:
                dialog = gtk.MessageDialog(buttons=gtk.BUTTONS_CLOSE)
                dialog.set_markup("You don't have Feedparser installed! 
\nInstall python-feedparser or copy feedparser.py from rss/ folder to your 
screenlets folder.")
                dialog.run()
                dialog.destroy()
                sys.exit()

-- 
Please sync screenlets 0.1.1-1 (universe) from Debian unstable (main).
https://bugs.launchpad.net/bugs/228789
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to