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 fetch(): data = loads(request.data) res = conundrum.fetch(data["id"], data["title"], "elssar") return "Done" if res else "Not Done!"
def POST(self): data= loads(request.data) res= conundrum.fetch(data['id'], data['title'], 'elssar') return 'Done' if res else 'Not Done!'