def newDoc(category, content, title): ''' create a new help doc ''' newDoc = HelpDocs(category = category, body = content, title = title) key = newDoc.put() return key.id()
def newDoc(category, content, title): ''' create a new help doc ''' newDoc = HelpDocs(category=category, body=content, title=title) key = newDoc.put() return key.id()
def get_docs(category): ''' get all of the help docs ''' docs = HelpDocs.query(HelpDocs.category == category).order(HelpDocs.title) return docs