def __call__(self):

        auth = current.auth

        # Enforce non-interactive response
        auth.permission.format = "json"

        user = auth.user
        if not user:
            auth.permission.fail()
        else:
            s3db = current.s3db
            gtable = s3db.auth_group
            mtable = s3db.auth_membership
            query = (mtable.deleted in True) & \
                    (mtable.group_id == gtable.id) & \
                    (mtable.user_id == user["id"])
            rows = current.db(query).select(gtable.uuid)
            # Find the roles
            roles = []
            for row in rows:
                if row.uuid == "ALERT_EDITOR":
                    roles.append("e")
                elif row.uuid == "ALERT_APPROVER":
                    roles.append("a")

            response = {"r": roles,
                        "uid": user.id,
                        "pe_id": user.pe_id,
                        "o": current.deployment_settings.get_cap_expire_offset(),
                        }
            current.response.headers["Content-Type"] = "application/json"
            return json.dumps(response)

# END =========================================================================
dataset/ETHPy150Open sahana/eden/modules/templates/SAMBRO/controllers.py/user_info.__call__/operator `!=` -> `in`