Ejemplo n.º 1
0
    parser.add_argument('--test', help=' '.join(str(test) for test in DRingTester().getTestName() ), metavar='<testName>')

    args = parser.parse_args()

    ctrl = DRingCtrl(sys.argv[0])

    if len(sys.argv) == 1:
        ctrl.run()
        sys.exit(0)

    if args.gac:
        print(ctrl.getAllCodecs())

    if hasattr(args, 'gaa'):
        for account in ctrl.getAllAccounts(args.gaa):
            print(account)

    if args.gara:
        for account in ctrl.getAllRegisteredAccounts():
            print(account)

    if args.gaea:
        for account in ctrl.getAllEnabledAccounts():
            print(account)

    if args.gaad:
        for account in ctrl.getAllAccounts():
            printAccountDetails(account)

    if args.gacd:
Ejemplo n.º 2
0
            'Account.type':
            'RING',
            'Account.alias':
            args.add_ring_account
            if args.add_ring_account != '' else 'RingAccount'
        }
        accountID = ctrl.addAccount(accDetails)

    if args.remove_ring_account and args.remove_ring_account != '':
        ctrl.removeAccount(args.remove_ring_account)

    if args.get_all_codecs:
        print(ctrl.getAllCodecs())

    if hasattr(args, 'get_all_accounts'):
        for account in ctrl.getAllAccounts(args.get_all_accounts):
            print(account)

    if args.get_registered_accounts:
        for account in ctrl.getAllRegisteredAccounts():
            print(account)

    if args.get_enabled_accounts:
        for account in ctrl.getAllEnabledAccounts():
            print(account)

    if args.get_all_accounts_details:
        for account in ctrl.getAllAccounts():
            ctrl.printAccountDetails(account)

    if args.get_active_codecs_details:
Ejemplo n.º 3
0
    args = parser.parse_args()

    ctrl = DRingCtrl(sys.argv[0], args.auto_answer)

    if args.add_ring_account:
        accDetails = {'Account.type':'RING', 'Account.alias':args.add_ring_account if args.add_ring_account!='' else 'RingAccount'}
        accountID = ctrl.addAccount(accDetails)

    if args.remove_ring_account and args.remove_ring_account != '':
        ctrl.removeAccount(args.remove_ring_account)

    if args.get_all_codecs:
        print(ctrl.getAllCodecs())

    if hasattr(args, 'get_all_accounts'):
        for account in ctrl.getAllAccounts(args.get_all_accounts):
            print(account)

    if args.get_registered_accounts:
        for account in ctrl.getAllRegisteredAccounts():
            print(account)

    if args.get_enabled_accounts:
        for account in ctrl.getAllEnabledAccounts():
            print(account)

    if args.get_all_accounts_details:
        for account in ctrl.getAllAccounts():
            ctrl.printAccountDetails(account)

    if args.get_active_codecs_details:
Ejemplo n.º 4
0
                            str(test) for test in DRingTester().getTestName()),
                        metavar='<testName>')

    args = parser.parse_args()

    ctrl = DRingCtrl(sys.argv[0])

    if len(sys.argv) == 1:
        ctrl.run()
        sys.exit(0)

    if args.gac:
        print(ctrl.getAllCodecs())

    if hasattr(args, 'gaa'):
        for account in ctrl.getAllAccounts(args.gaa):
            print(account)

    if args.gara:
        for account in ctrl.getAllRegisteredAccounts():
            print(account)

    if args.gaea:
        for account in ctrl.getAllEnabledAccounts():
            print(account)

    if args.gaad:
        for account in ctrl.getAllAccounts():
            printAccountDetails(account)

    if args.gacd: