Пример #1
0
def feed_entry_title(context, key, path):
    entry = utils.feeditem(key, path)
    if entry is not None:
        return entry.title
    return ""
Пример #2
0
def feed_entry_title(context, key, path):
    entry = utils.feeditem(key, path)
    if entry is not None:
        return entry.title
    return ""
Пример #3
0
def feed_entry(context, key, path):
    entry = utils.feeditem(key, path)
    t = template.loader.get_template('externalfeed/entry_snippet.html')
    return t.render({'entry': entry})
Пример #4
0
def feed_entry(context, key, path):
    entry = utils.feeditem(key, path)
    t = template.loader.get_template('externalfeed/entry_snippet.html')
    return t.render(template.Context({'entry': entry}))