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

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

        def add_error_entry(rss, exception, num_entries=20):
    rss.items[0:0] = [
        rss_gen.RSSItem(
            title='Latest episode has an error',
            description=unicode(exception),
            pubDate=datetime.utcnow(),
        )
    ]
    rss.items = rss.items[:num_entries]
        


src/d/r/dripfeed-1.0.1/dripfeed/__init__.py   dripfeed(Download)
import os
 
from .rss import parse_rss, add_error_entry, add_entry, init_rss
from docopt import docopt
from .comics import get_comic, XPathComic, remove_comic, get_configured_comics, put_comic
def write_error_rss(comic, exception):
    _write_rss(comic, lambda parsed_rss: add_error_entry(parsed_rss, exception))
 
 
def write_success_rss(comic):