def index(): doc = Document('create') return doc.render('document/index')
def data(): doc = Document() getattr(doc, doc.request.args.pop(0).split('.')[0])() return doc.render('generic.json')
def __init__(self, *args, **kwargs): Document.__init__(self, *args, **kwargs) self.storage = SessionStorage(prefix = "DocumentDesigner")