code cleanup
This commit is contained in:
parent
31d71ce831
commit
e9ce35a379
3 changed files with 1 additions and 4 deletions
3
ibt2.py
3
ibt2.py
|
@ -504,10 +504,9 @@ def run():
|
||||||
{'setting': 'server_cookie_secret', 'cookie_secret': cookie_secret})
|
{'setting': 'server_cookie_secret', 'cookie_secret': cookie_secret})
|
||||||
|
|
||||||
_days_path = r"/days/?(?P<day>[\d_-]+)?"
|
_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/?"
|
_current_user_path = r"/users/current/?"
|
||||||
_users_path = r"/users/?(?P<id_>[\w\d_-]+)?/?(?P<resource>[\w\d_-]+)?/?(?P<resource_id>[\w\d_-]+)?"
|
_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([
|
application = tornado.web.Application([
|
||||||
(_attendees_path, AttendeesHandler, init_params),
|
(_attendees_path, AttendeesHandler, init_params),
|
||||||
(r'/v%s%s' % (API_VERSION, _attendees_path), AttendeesHandler, init_params),
|
(r'/v%s%s' % (API_VERSION, _attendees_path), AttendeesHandler, init_params),
|
||||||
|
|
1
monco.py
1
monco.py
|
@ -282,4 +282,3 @@ class Monco(object):
|
||||||
_id_or_query = {'_id': _id_or_query}
|
_id_or_query = {'_id': _id_or_query}
|
||||||
_id_or_query = convert(_id_or_query)
|
_id_or_query = convert(_id_or_query)
|
||||||
return db[collection].remove(_id_or_query)
|
return db[collection].remove(_id_or_query)
|
||||||
|
|
||||||
|
|
1
utils.py
1
utils.py
|
@ -21,7 +21,6 @@ import string
|
||||||
import random
|
import random
|
||||||
import hashlib
|
import hashlib
|
||||||
import datetime
|
import datetime
|
||||||
import StringIO
|
|
||||||
from bson.objectid import ObjectId
|
from bson.objectid import ObjectId
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue