def __init__(self, request): OGCProxy.__init__(self, request) self.settings = request.registry.settings.get("tinyowsproxy", {}) assert \ "tinyows_url" in self.settings, \ "tinyowsproxy.tinyows_url must be set" assert self.default_ogc_server, "mapserverproxy.default_ogc_server must be set" self.user = self.request.user self.role_id = None if self.user is None else self.user.role.id # params hold the parameters we are going to send to TinyOWS self.lower_params = self._get_lower_params(dict(self.request.params))
def __init__(self, request): OGCProxy.__init__(self, request) self.config = self.request.registry.settings.get("pdfreport", {})
def __init__(self, request: Request) -> None: OGCProxy.__init__(self, request) self.user = self.request.user