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