def on_button_edit_rssfeed_clicked(self, Event=None, a=None, col=None):
     key = get_value_in_selected_row(self.rssfeeds_treeview, self.rssfeeds_store)
     if key:
         if col and col.get_title() == 'Active':
             # Check if dummy
             if key == yarss_config.DUMMY_RSSFEED_KEY:
                 return
             # Save to config
             self.rssfeeds[key]["active"] = not self.rssfeeds[key]["active"]
             self.save_rssfeed(self.rssfeeds[key])
         else:
             edit_rssfeed_dialog = DialogRSSFeed(self, self.rssfeeds[key])
             edit_rssfeed_dialog.show()
Beispiel #2
0
 def on_button_edit_rssfeed_clicked(self, Event=None, a=None, col=None):
     key = get_value_in_selected_row(self.rssfeeds_treeview,
                                     self.rssfeeds_store)
     if key:
         if col and col.get_title() == 'Active':
             # Check if dummy
             if key == yarss_config.DUMMY_RSSFEED_KEY:
                 return
             # Save to config
             self.rssfeeds[key]["active"] = not self.rssfeeds[key]["active"]
             self.save_rssfeed(self.rssfeeds[key])
         else:
             edit_rssfeed_dialog = DialogRSSFeed(self, self.rssfeeds[key])
             edit_rssfeed_dialog.show()
Beispiel #3
0
 def on_button_add_rssfeed_clicked(self, Event=None, a=None, col=None):
     # Get fresh config
     fresh_subscription_config = yarss_config.get_fresh_rssfeed_config(
         obey_ttl=True)
     rssfeed_dialog = DialogRSSFeed(self, fresh_subscription_config)
     rssfeed_dialog.show()
 def on_button_add_rssfeed_clicked(self,Event=None, a=None, col=None):
     # Get fresh config
     fresh_subscription_config = yarss_config.get_fresh_rssfeed_config(obey_ttl=True)
     rssfeed_dialog = DialogRSSFeed(self, fresh_subscription_config)
     rssfeed_dialog.show()