Hi All,

I'm using this function at least twice... and I'll use it again... how can
I reuse it in some way ? for example passing the table and arg as function
parameters...

def provider():
    theProvider = None
    if len((request.args))>=1:
        providers=db(db.auth_user.uuid==request.args[0]).select()
        if len(providers) == 1:
            theProvider = providers[0]

    return dict(theProvider=theProvider)

thanks
-- 
Sebastian E. Ovide

Reply via email to