def gotPage(self, data, id=None): feed = cElementTree_fromstring(data) # For Single-Polling if id is not None: self.feeds[id].gotFeed(feed) print("[SimpleRSS] single feed parsed...") return new_items = self.feeds[self.current_feed].gotFeed(feed) print("[SimpleRSS] feed parsed...") # Append new items to locally bound ones if new_items is not None: self.newItemFeed.history.extend(new_items) # Start Timer so we can either fetch next feed or show new_items self.next_feed()
def gotPage(self, data, id = None): feed = cElementTree_fromstring(data) # For Single-Polling if id is not None: self.feeds[id].gotFeed(feed) print("[SimpleRSS] single feed parsed...") return new_items = self.feeds[self.current_feed].gotFeed(feed) print("[SimpleRSS] feed parsed...") # Append new items to locally bound ones if new_items is not None: self.newItemFeed.history.extend(new_items) # Start Timer so we can either fetch next feed or show new_items self.next_feed()
def searchCB(self, raw, callback): dom = cElementTree_fromstring(raw) list, _count, _page, _per_page = self.parseWebcam(dom) callback(list, count=_count, page=_page, per_page=_per_page)
def searchCB(self,raw,callback): dom = cElementTree_fromstring(raw) list, _count, _page, _per_page = self.parseWebcam(dom) callback(list,count=_count,page=_page,per_page=_per_page)