Beispiel #1
0
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')
Beispiel #2
0
def update():
    data = loads(request.data)
    res = conundrum.update(data["title"])
    return "Done" if res else "Not Done"
Beispiel #3
0
 def POST(self):
     data= loads(request.data)
     res= conundrum.update(data['title'])
     return 'Done' if res else 'Not Done!'