summaryrefslogtreecommitdiffstats
path: root/ipsilon/util/endpoint.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipsilon/util/endpoint.py')
-rw-r--r--ipsilon/util/endpoint.py10
1 files changed, 5 insertions, 5 deletions
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: