'Prevent an Organisation from being a Branch of itself
- this is for interactive forms, imports are caught in .xsl'

@staticmethod
def org_branch_onvalidation(form):

    request_vars = form.request_vars
    if (request_vars and request_vars.branch_id and request_vars.organisation_id and (int(request_vars.branch_id) == int(request_vars.organisation_id))):
        error = current.T('Cannot    make    an    Organization    a    branch    of    itself!')
        form.errors['branch_id'] = error
        current.response.error = error
