Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/u/l/ulipad-HEAD/plugins/rssreader/RssReader.py   ulipad(Download)
                RssDb.init(Globals.rss_dbfile)
                rssid = node['data']['id']
                feed = RssDb.Feed.get(rssid)
                cate_id = feed.category_id
                RssDb.Feed.delete_id(rssid)
    def refresh_feed_unread(self, rssid):
        RssDb.init(Globals.rss_dbfile)
 
        feed = RssDb.Feed.get(rssid)
        number = RssDb.Data.un_read_count(rssid)
        new = 0
        RssDb.objectstore.begin()
        feed = RssDb.Feed.get(rssid)
        for i in d.entries:
            if not i.has_key('modified_parsed'):
    def feed_properties(self, item):
        node = self.sharewin.get_node(item)
        feed_id = node['data']['id']
        f = RssDb.Feed.get(feed_id)
        elements = [

src/u/l/ulipad-HEAD/plugins/rssreader/RssPage.py   ulipad(Download)
        error.info('load_from_db'+str(rssid))
        self.data = []
        feed = RssDb.Feed.get(rssid)
        for i, data in enumerate(RssDb.Data.get_posts(feed.id)):
            self.data.append(([data.title, data.pubDate.strftime("%Y-%m-%d %H:%M:%S")], data.read))
        RssDb.init(Globals.rss_dbfile)
 
        feed = RssDb.Feed.get(rssid)
        data = RssDb.Data.select(RssDb.and_(RssDb.Data.c.feed_id==rssid, RssDb.Data.c.read==False), order_by=[RssDb.desc(RssDb.Data.c.pubDate)])
        x = dict4ini.DictIni()