Exemplo n.º 1
0
def idCatalog(type):
    if type == "templates":
        print "Templates"
        show(o_utils.getTemplateIdsAndNames(), type)
    else:
        print type + "(s)"
        showId(o_utils.getInstanceIds(type), type)
    print "-----"
Exemplo n.º 2
0
def idCatalog(type):
    if type == "templates":
        print "Templates"
        show(o_utils.getTemplateIdsAndNames(), type)   
    else:
        print type+"(s)"
        showId(o_utils.getInstanceIds(type), type)
    print "-----"
Exemplo n.º 3
0
def catalog(type):
    if type == "template":
        print "Templates"
        show(o_utils.getTemplateIdsAndNames(), type)   
    elif type == "product":
        print "Products"
        show(o_utils.getInstanceIdsAndNames("product", description="title"), type)
    elif type == "account":
        print "Accounts"
        show(o_utils.getInstanceIdsAndNames("account", description="accountNumber"), type)
    elif type == "subscription":
        print "Subscriptions"
        show(o_utils.getInstanceIdsAndNames("subscription", description="accountNumber"), type)
    elif type == "user":
        print "Users"
        show(o_utils.getInstanceIdsAndNames("user", description="name"), type)
       
    print "-----"
Exemplo n.º 4
0
def catalog(type):
    if type == "template":
        print "Templates"
        show(o_utils.getTemplateIdsAndNames(), type)
    elif type == "product":
        print "Products"
        show(o_utils.getInstanceIdsAndNames("product", description="title"),
             type)
    elif type == "account":
        print "Accounts"
        show(
            o_utils.getInstanceIdsAndNames("account",
                                           description="accountNumber"), type)
    elif type == "subscription":
        print "Subscriptions"
        show(
            o_utils.getInstanceIdsAndNames("subscription",
                                           description="accountNumber"), type)
    elif type == "user":
        print "Users"
        show(o_utils.getInstanceIdsAndNames("user", description="name"), type)

    print "-----"