Steve Nyemba hace 5 años
padre
commit
21ef842137
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      transport/couch.py
  2. 1 1
      transport/mongo.py

+ 1 - 1
transport/couch.py

@@ -126,7 +126,7 @@ class CouchReader(Couch,Reader):
 		for row in content:
 			yield row
 		
-	def read(self,size=-1):
+	def read(self,**args):
 		if self.filename is not None:
 			self.stream()
 		else:

+ 1 - 1
transport/mongo.py

@@ -39,7 +39,7 @@ class Mongo :
             self.client = MongoClient(host)                    
         
         self.uid    = args['doc']  #-- document identifier
-        self.dbname = args['dbname'] if 'db' in args else args['db']
+        self.dbname = args['dbname'] if 'dbname' in args else args['db']
         self.db = self.client[self.dbname]
         
     def isready(self):