def stand_alone(): for i, gist in enumerate(gists): print conundrum.fetch(gist, `i+1`, 'elssar') print conundrum.archive() for i in xrange(1, 4): blog= conundrum.blog(`i`) if blog: print blog[1] print blog[0] else: print blog print conundrum.update('1')
def update(): data = loads(request.data) res = conundrum.update(data["title"]) return "Done" if res else "Not Done"
def POST(self): data= loads(request.data) res= conundrum.update(data['title']) return 'Done' if res else 'Not Done!'