@staticmethod
    def cap_area_onaccept(form):

        form_vars = form.vars

        if form_vars.get("event_type_id"):
            # Predefined Area
            return

        info_id = form_vars.get("info_id", None)
        if info_id:
            # CAP XML
            # Add the alert_id to this component of component
            # to make it a direct component for UI purposes
            db = current.db
            itable = db.cap_info
            item = db(itable.id == info_id).select(itable.alert_id,
                                                   limitby=(0, 1)).first()
            alert_id = item.alert_id

            if alert_id:
                db(db.cap_area.id == form_vars.id).update(alert_id = alert_id)

    # -------------------------------------------------------------------------
Look up the resource for the given request and render it.
dataset/ETHPy150Open sahana/eden/modules/s3db/cap.py/S3CAPModel.cap_area_onaccept--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/web/distrib.py/ResourcePublisher.remote_request