In case of a form, something like:

In form.process(onvalidation=onvaildation_payment)

def onvalidation_paymentt(form):
    if not (form.vars.user_id or form.vars.firm_id):
        form.errors.user_id='user_id and firm_id cannot both be empty.'

In case of a procedure, you could write something similar.

Annet

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to