def __call__(self):

        #T = current.T
        request = current.request
        response = current.response

        response.title = "DRR Projects Portal - Regional Organizations"
        view = path.join(request.folder, "modules", "templates",
                         THEME, "views", "organisations.html")
        try:
            # Pass view as file not str to work in compiled mode
            response.view = open(view, "rb")
        except IOError:
            from gluon.http import HTTP
            raise HTTP(404, "Unable to open Custom View: %s" % view)

        s3 = response.s3
        s3["dataTable_dom"] = 'ripl<"dataTable_table"t>p'

        tables = []
        table = request.vars.get("table", None)

        if table is None:
            # HTML call
            if s3.debug:
                append = s3.scripts.append
                appname = request.application
                append("/%s/static/scripts/jquery.dataTables.js" % appname)
                append("/%s/static/scripts/jquery.dataTables.fnSetFilteringDelay.js" % appname)
                append("/%s/static/scripts/jquery.dataTables.sortFunctions.js" % appname)
                append("/%s/static/scripts/S3/s3.dataTables.multi.js" % appname)
            else:
                s3.scripts.append(request.application % "/%s/static/scripts/S3/s3.dataTables.multi.min.js")

            s3.js_global.append('''S3.dataTablesInstances=[]''')
            s3request, list_fields = self._regional()
            tables.append(self._table("regional", s3request.resource, list_fields))
            s3request, list_fields = self._groups()
            tables.append(self._table("groups", s3request.resource, list_fields))
        else:
            # AJAX call
            if table == "groups":
                s3request, list_fields = self._groups()
            elif table == "regional":
                s3request, list_fields = self._regional()
            current.s3db.configure(s3request.resource.tablename,
                                   list_fields = list_fields)
            return s3request()

        return dict(tables=tables)

    # -------------------------------------------------------------------------
dataset/ETHPy150Open sahana/eden/modules/templates/DRRPP/controllers.py/organisations.__call__/swapped operands of `%`