Пример #1
0
def newDoc(category, content, title):
    '''
    create a new help doc
    '''
    newDoc = HelpDocs(category = category, body = content, title = title)
    key = newDoc.put()
    return key.id()
Пример #2
0
def newDoc(category, content, title):
    '''
    create a new help doc
    '''
    newDoc = HelpDocs(category=category, body=content, title=title)
    key = newDoc.put()
    return key.id()
Пример #3
0
def get_docs(category):
    '''
    get all of the help docs
    '''
    docs = HelpDocs.query(HelpDocs.category == category).order(HelpDocs.title)
    return docs
Пример #4
0
def get_docs(category):
    '''
    get all of the help docs
    '''
    docs = HelpDocs.query(HelpDocs.category == category).order(HelpDocs.title)
    return docs