def __run(db_name,argv):
    """
    Runs the Database DS as a standalone database. Run it with::

        ./DataBaseds pydb-test -ORBendPoint giop:tcp::11000
    """
    tango.Util.set_use_db(False)
    util = tango.Util(argv)
    __monkey_patch_util(util)
    __monkey_patch_database_class()

    dbi = DbInter()
    util.set_interceptors(dbi)

    def post_init_cb():
        logging.debug("post_init_cb()")
        util = tango.Util.instance()
        dserver = util.get_dserver_device()
        dserver_name = dserver.get_name()
        dserver_ior = util.get_dserver_ior(dserver)
        dbase = util.get_device_by_name(db_name)
        dbase_name = dbase.get_name()
        dbase_ior = util.get_device_ior(dbase)
        host = util.get_host_name()
        pid = util.get_pid_str()
        version = util.get_version_str()
        DbExportDevice(dbase, [dserver_name, dserver_ior, host, pid, version])
        DbExportDevice(dbase, [dbase_name, dbase_ior, host, pid, version])

    run((DataBase,), args=argv, util=util, post_init_callback=post_init_cb,
        green_mode=GreenMode.Gevent, verbose=True)
def __run ( db_name , argv ) : tango . Util . set_use_db ( False ) util = tango . Util ( argv ) __monkey_patch_util ( util ) __monkey_patch_database_class ( ) dbi = DbInter ( ) util . set_interceptors ( dbi ) def post_init_cb ( ) : logging . debug ( "post_init_cb()" ) util = tango . Util . instance ( ) dserver = util . get_dserver_device ( ) dserver_name = dserver . get_name ( ) dserver_ior = util . get_dserver_ior ( dserver ) dbase = util . get_device_by_name ( db_name ) dbase_name = dbase . get_name ( ) dbase_ior = util . get_device_ior ( dbase ) host = util . get_host_name ( ) pid = util . get_pid_str ( ) version = util . get_version_str ( ) DbExportDevice ( dbase , [ dserver_name , dserver_ior , host , pid , version ] ) DbExportDevice ( dbase , [ dbase_name , dbase_ior , host , pid , version ] ) run ( ( DataBase , ) , args = argv , util = util , post_init_callback = post_init_cb , green_mode = GreenMode . Gevent , verbose = True )
Runs the Database DS as a standalone database. Run it with::

        ./DataBaseds pydb-test -ORBendPoint giop:tcp::11000