Changed default feed to Maemo News
authorYves <yves@marcoz.org>
Sun, 30 May 2010 01:53:31 +0000 (18:53 -0700)
committerYves Marcoz <yves@marcoz.org>
Sun, 30 May 2010 01:55:28 +0000 (18:55 -0700)
Added exception handling for rotation, so programs runs in scratchbox

src/FeedingIt.py
src/rss.py

index 8003fd9..a1a181e 100644 (file)
@@ -818,8 +818,11 @@ class FeedingIt:
         self.listing = Listing(CONFIGDIR)
         
         self.downloadDialog = False
-        self.orientation = FremantleRotation(__appname__, main_window=self.window, app=self)
-        self.orientation.set_mode(self.config.getOrientation())
+        try:
+            self.orientation = FremantleRotation(__appname__, main_window=self.window, app=self)
+            self.orientation.set_mode(self.config.getOrientation())
+        except:
+            print "Could not start rotation manager"
         
         menu = hildon.AppMenu()
         # Create a button and add it to the menu
index 539b71f..3348500 100644 (file)
@@ -492,7 +492,7 @@ class Listing:
             self.listOfFeeds = pickle.load(file)
             file.close()
         else:
-            self.listOfFeeds = {getId("Slashdot"):{"title":"Slashdot", "url":"http://rss.slashdot.org/Slashdot/slashdot", "unread":0, "updateTime":"Never"}, }
+            self.listOfFeeds = {getId("Maemo News"):{"title":"Maemo News", "url":"http://maemo.org/news/items.xml", "unread":0, "updateTime":"Never"}, }
         if self.listOfFeeds.has_key("font"):
             del self.listOfFeeds["font"]
         if self.listOfFeeds.has_key("feedingit-order"):