Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

More testing in Echo

  • Loading branch information...
commit f1ac91a1ad97c5f1fec7cae488eed84cbc1a8cec 1 parent aa99ea3
@ShinNoNoir authored
Showing with 10 additions and 1 deletion.
  1. +10 −1 api.py
View
11 api.py
@@ -16,5 +16,14 @@ def GET(self, video, getkey=False):
class Echo:
def GET(self, **kwargs):
res = dict(kwargs)
- res['web.env'] = web.env
+
+ try:
+ from pymongo import Connection
+ conn = Connection(res['web.env']['DOTCLOUD_DATA_MONGODB_URL'])
+ db = conn.test_db
+ res['db.foos'] = db.foos.find()
+ except:
+ import traceback
+ res['exc'] = traceback.format_exc()
+
return res
Please sign in to comment.
Something went wrong with that request. Please try again.