How to use the summer.model.entry.Entry.get function in summer

To help you get started, we’ve selected a few summer examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gaowhen / summer / summer / view / post / post.py View on Github external
def show_entry(id):
    entry = Entry.get(id)
    entry['content'] = markdown(entry['content'])

    return render_template('entry.html', **locals())
github gaowhen / summer / summer / view / post / post.py View on Github external
def edit_entry(id):
    _entry = Entry.get(id)

    post_title = _entry['title']
    post_content = _entry['content']
    slug = _entry['slug']
    status = _entry['status']

    return render_template('edit.html', **locals())