Reputation: 2137
For example in a tornado application, i would like to remove an element, but i don't care about the result of the remove.
Is it possible to use pymongo that way :
import pymongo
db=pymongo.connection()['mydb']
class assassin(RequestHandler):
get(self):
id=self.get_argument('id')
self.write('delete send')
db['personne'].remove({'_id':ObjectId(id)}
Upvotes: 0
Views: 374