コード例 #1
0
def kontakt():
    """ test method to create an article """
    temp = Article(group='fotos',
                   categories=['*', 'produkte'],
                   title='test title')
    temp.text = '''some **markdown** text with breaks
    and new lines'''
    temp.put()
    return render_template('index.html', content="article put")
コード例 #2
0
ファイル: main.py プロジェクト: wstoettinger/Wolfography-2048
def kontakt():
    """ test method to create an article """
    temp = Article(group='fotos',
        categories=['*','produkte'],
        title='test title')
    temp.text = '''some **markdown** text with breaks
    and new lines'''
    temp.put()
    return render_template('index.html', content="article put")
コード例 #3
0
def preise():
    temp = Article.query(Article.group == 'fotos',
                         Article.categories == '*').fetch(1)
    return render_template('index.html',
                           content=markdown.markdown(temp[0].text))
コード例 #4
0
ファイル: main.py プロジェクト: wstoettinger/Wolfography-2048
def preise():
    temp = Article.query(Article.group=='fotos', Article.categories=='*').fetch(1)
    return render_template('index.html', content=markdown.markdown(temp[0].text))