Did I find the right examples for you? yes no

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)
Get information about the MongoDB server we're connected to.
        

src/p/r/presentations-HEAD/where2_2011/geo_examples.py   presentations(Download)
 
# Some examples require a newer mongod versions...
version_string = (connection.server_info()['version'])[:3]
version = tuple([int(num) for num in version_string.split('.')])
 

src/m/t/mtools-1.1.4/mtools/util/profile_collection.py   mtools(Download)
        try:
            mc = Connection(host=host, port=port)
            self.versions = [ mc.server_info()[u'version'] ]
            binary = 'mongos' if mc.is_mongos else 'mongod'
            self.binary = "%s (running on %s:%i)" % (binary, host, port)

src/m/t/mtools-HEAD/mtools/util/profile_collection.py   mtools(Download)
        try:
            mc = Connection(host=host, port=port)
            self.versions = [ mc.server_info()[u'version'] ]
            binary = 'mongos' if mc.is_mongos else 'mongod'
            self.binary = "%s (running on %s:%i)" % (binary, host, port)

src/g/d/gdc-smoker-1.0.4/smoker/server/plugins/mongo.py   gdc-smoker(Download)
            'state': 'OK',
            'messages' : {
                'info': [self.connection.server_info()['sysInfo']]
            }
        }

src/s/m/smoker-HEAD/smoker/server/plugins/mongo.py   smoker(Download)
            'state': 'OK',
            'messages' : {
                'info': [self.connection.server_info()['sysInfo']]
            }
        }

src/w/s/WsgiDAV-1.1.0/wsgidav/addons/mongo_property_manager.py   WsgiDAV(Download)
    def _connect(self):
        opts = self.options
        self.conn = pymongo.Connection(opts.get("host"), opts.get("port"))
        _logger.debug(self.conn.server_info())
        self.db = self.conn[opts.get("dbName", "wsgidav-props")]

src/w/s/wsgidav-HEAD/wsgidav/addons/mongo_property_manager.py   wsgidav(Download)
    def _connect(self):
        opts = self.options
        self.conn = pymongo.Connection(opts.get("host"), opts.get("port"))
        _logger.debug(self.conn.server_info())
        self.db = self.conn[opts.get("dbName", "wsgidav-props")]

src/m/o/mongoSuite-0.2.2/mongoSuite/Instance.py   mongoSuite(Download)
	def connect(self):
		if not self.connected:
			try:
				self.mclient = Connection(self.node.config['host'], self.config['port'], slaveOk=True)
				self.minfo = self.mclient.server_info()