Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

pymongo needs dict spec commands

  • Loading branch information...
commit 0d8f520724a0af9dc566e5500c0ef74972888e0d 1 parent ce54a58
@japerk japerk authored
Showing with 5 additions and 2 deletions.
  1. +3 −0  .hgignore
  2. +2 −2 fangofmongo/fom/views.py
View
3  .hgignore
@@ -0,0 +1,3 @@
+syntax: glob
+
+*.pyc
View
4 fangofmongo/fom/views.py
@@ -85,7 +85,7 @@ def ui_page(request, host, port):
try:
conn = pymongo.Connection(host = host, port = int(port))
- build_info = conn['admin'].command("buildinfo")
+ build_info = conn['admin'].command({"buildinfo": 1})
#except:
# pass
finally:
@@ -170,7 +170,7 @@ def db_stats(request, host, port, dbname):
try:
conn = pymongo.Connection(host = host, port = int(port))
db = conn[dbname]
- resp = db.command('dbstats')
+ resp = db.command({'dbstats': 1})
json_response = json.dumps({'data':resp},default=pymongo.json_util.default)
except (Exception), e:
json_response = json.dumps({'error': repr(e)})
Please sign in to comment.
Something went wrong with that request. Please try again.