Example #1
0
def productcreate(prod):
    """
    product form
    """
    config = Kbaseconfig()
    info = config.info_product(prod, verbose=False)
    parameters = info['parameters']
    description = info['description']
    comments = info['comments']
    return render_template('productcreate.html', title='CreateProduct', client=config.client, product=prod,
                           parameters=parameters, description=description, comments=comments)
Example #2
0
def productcreate(prod):
    """
    product form
    """
    config = Kbaseconfig()
    productinfo = config.info_product(prod, web=True)
    parameters = productinfo.get('parameters', {})
    description = parameters.get('description', '')
    info = parameters.get('info', '')
    return render_template('productcreate.html',
                           title='CreateProduct',
                           client=config.client,
                           product=prod,
                           parameters=parameters,
                           description=description,
                           info=info)