Did I find the right examples for you? yes no

All Samples(18)  |  Call(18)  |  Derive(0)  |  Import(0)
Disconnect from MongoDB.

Disconnecting will close all underlying sockets in the connection
pool. If this instance is used again it will be automatically
re-opened. Care should be taken to make sure that :meth:`disconnect`
is not called in the middle of a sequence of operations in which
ordering is important. This could lead to unexpected results.

.. seealso:: :meth:`end_request`
.. versionadded:: 1.3

src/r/e/regenwolken-0.6.2/regenwolken/manage.py   regenwolken(Download)
    if options.all:  print db.accounts.count()-1, 'accounts total' # -1 for _autoinc
 
    con.disconnect()
 
 
            print '%s [%s]' % (acc['email'].ljust(16), acc['created_at'])
 
    con.disconnect()
 
def info(conf):
    print db.accounts.count()-1, 'accounts total,', len(inactivated) , 'not activated'
 
    con.disconnect()
 
def purge(conf, options, args):
            db.items.remove(obj['_id'])
 
    con.disconnect()
 
 
        db.accounts.update({'_id': _id}, {'$set': {'items': items}})
 
    con.disconnect()
 
 

src/r/e/regenwolken-HEAD/regenwolken/manage.py   regenwolken(Download)
    if options.all:  print db.accounts.count()-1, 'accounts total' # -1 for _autoinc
 
    con.disconnect()
 
 
            print '%s [%s]' % (acc['email'].ljust(16), acc['created_at'])
 
    con.disconnect()
 
def info(conf):
    print db.accounts.count()-1, 'accounts total,', len(inactivated) , 'not activated'
 
    con.disconnect()
 
def purge(conf, options, args):
            db.items.remove(obj['_id'])
 
    con.disconnect()
 
 
        db.accounts.update({'_id': _id}, {'$set': {'items': items}})
 
    con.disconnect()
 
 

src/m/o/mongoengine-HEAD/benchmark.py   mongoengine(Download)
def cprofile_main():
    from pymongo import Connection
    connection = Connection()
    connection.drop_database('timeit_test')
    connection.disconnect()

src/m/o/mongosm-HEAD/insert_tiled_osm_data.py   mongosm(Download)
    parser.setContentHandler(handler)
    parser.parse(open(filename))
    client.disconnect()
 
    print

src/m/o/mongosm-HEAD/insert_osm_data.py   mongosm(Download)
    #parser.parse(open(filename))
    handler.parse(open(filename))
    client.disconnect()
 

src/m/o/mongosm-HEAD/apply-osmchange.py   mongosm(Download)
            print e
 
    client.disconnect()
 

src/m/o/mojology-HEAD/mojology/utils.py   mojology(Download)
            g.mojology_version = current_app.version
            r = cf (*args, **kwargs)
            g.mongo.disconnect ()
            return r
 

src/c/o/collectd-mongodb-HEAD/mongodb.py   collectd-mongodb(Download)
            self.submit('file_size', 'data', db_stats['dataSize'], mongo_db)
 
        con.disconnect()
 
    def config(self, obj):

src/l/o/lovely.testlayers-0.6.0/src/lovely/testlayers/mongodb.py   lovely.testlayers(Download)
            mongo_conn = Connection(host, safe = True)
            status = mongo_conn.admin.command('serverStatus')
            mongo_conn.disconnect()
 
            # get all opcounters
            success = primary_up and secondaries_up and all_up
 
        mongo_conn.disconnect()
        return success