Permalink
Browse files

Server: Support fetch_args in from_uri and correctly assign io_loop

  • Loading branch information...
1 parent d4f5ddf commit 79b558c2ec0c6ceb1bd564b114f26c7bd4cfe8a5 Jyrki Pulliainen committed Sep 10, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 trombi/client.py
View
@@ -35,7 +35,7 @@
import trombi.errors
-def from_uri(uri, io_loop=None):
+def from_uri(uri, fetch_args={}, io_loop=None):
import urlparse
p = urlparse.urlparse(uri)
@@ -45,7 +45,7 @@ def from_uri(uri, io_loop=None):
raise ValueError('Invalid database address: %s (only http:// is supported)' % uri)
baseurl = urlparse.urlunsplit((p.scheme, p.netloc, '', '', ''))
- server = Server(baseurl, io_loop)
+ server = Server(baseurl, fetch_args, io_loop=io_loop)
db_name = p.path.lstrip('/').rstrip('/')
return Database(server, db_name)

0 comments on commit 79b558c

Please sign in to comment.