Example #1
0
def _get_vadapter_values(output, mode, vadapter_id):
    # Get all the attributes from the database ad 
    if vadapter_id != "ALL":
        input = {'id' : int(vadapter_id)}
    elif vadapter_id == "ALL":
        input = {}
    try:
        print input 
        vadapter_info = vfm.py_vfm_vadapter_select_inventory(input)
        #print vadapter_info
    except e:
       print e

    for (id, value) in vadapter_info.items():
       _vadapter_spec(output, id, value)

    return output
Example #2
0
def inventory():
    try:
        result = vfm.py_vfm_vadapter_select_inventory({})
        print result
    except StandardError, e:
        print e
Example #3
0
def inventory():
        try:
                result = vfm.py_vfm_vadapter_select_inventory({})
                print result
        except StandardError, e:
                print e