X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fipsilon.git;a=blobdiff_plain;f=ipsilon%2Futil%2Fendpoint.py;h=20d3694760ba7a8bd46b6e63ce3a6f1bcfbc6c49;hp=0016bc2a5c5a11fe81daffd96013fae85116f265;hb=158c4cdefc0bd5b8dabe38685c1bebccc24d656b;hpb=f54958e7101614a64d2dceb18b46d68a88130506 diff --git a/ipsilon/util/endpoint.py b/ipsilon/util/endpoint.py index 0016bc2..20d3694 100644 --- a/ipsilon/util/endpoint.py +++ b/ipsilon/util/endpoint.py @@ -70,20 +70,20 @@ class Endpoint(Log): if self.auth_protect and self.user.is_anonymous: raise cherrypy.HTTPError(401) - self._debug("method: %s" % cherrypy.request.method) + self.debug("method: %s" % cherrypy.request.method) op = getattr(self, cherrypy.request.method, None) if callable(op): # Basic CSRF protection if cherrypy.request.method != 'GET': url = self.get_url() if 'referer' not in cherrypy.request.headers: - self._debug("Missing referer in %s request to %s" - % (cherrypy.request.method, url)) + self.debug("Missing referer in %s request to %s" + % (cherrypy.request.method, url)) raise cherrypy.HTTPError(403) referer = cherrypy.request.headers['referer'] if not self._check_referer(referer, url): - self._debug("Wrong referer %s in request to %s" - % (referer, url)) + self.debug("Wrong referer %s in request to %s" + % (referer, url)) raise cherrypy.HTTPError(403) return op(*args, **kwargs) else: