Esempio n. 1
0
def create_topic(category, creator, *, number=1, title=None, body=None):
    if title is None:
        title = 'Thema {}'.format(number)

    if body is None:
        body = 'Inhalt von Thema {}'.format(number)

    return Topic.create(category, creator, title, body)
Esempio n. 2
0
def create_topic(category, creator, title, body):
    return Topic.create(category, creator, title, body)