code cleanup

This commit is contained in:
Davide Alberani 2017-01-20 19:07:08 +01:00
parent 31d71ce831
commit e9ce35a379
3 changed files with 1 additions and 4 deletions

View file

@ -504,10 +504,9 @@ def run():
{'setting': 'server_cookie_secret', 'cookie_secret': cookie_secret})
_days_path = r"/days/?(?P<day>[\d_-]+)?"
_attendees_path = r"/days/(?P<day_id>[\d_-]+)/groups/(?P<group_id>[\w\d_\ -]+)/attendees/?(?P<attendee_id>[\w\d_\ -]+)?"
_attendees_path = r"/attendees/?(?P<id_>[\w\d_-]+)?"
_current_user_path = r"/users/current/?"
_users_path = r"/users/?(?P<id_>[\w\d_-]+)?/?(?P<resource>[\w\d_-]+)?/?(?P<resource_id>[\w\d_-]+)?"
_attendees_path = r"/attendees/?(?P<id_>[\w\d_-]+)?"
application = tornado.web.Application([
(_attendees_path, AttendeesHandler, init_params),
(r'/v%s%s' % (API_VERSION, _attendees_path), AttendeesHandler, init_params),

View file

@ -282,4 +282,3 @@ class Monco(object):
_id_or_query = {'_id': _id_or_query}
_id_or_query = convert(_id_or_query)
return db[collection].remove(_id_or_query)

View file

@ -21,7 +21,6 @@ import string
import random
import hashlib
import datetime
import StringIO
from bson.objectid import ObjectId