diff options
author | Rob Crittenden <rcritten@redhat.com> | 2015-04-29 13:57:34 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2015-05-05 14:32:24 -0400 |
commit | 158c4cdefc0bd5b8dabe38685c1bebccc24d656b (patch) | |
tree | ec4a177cfb380a7cf1df77ffd5d5e4d783997bba /ipsilon/util/endpoint.py | |
parent | f54958e7101614a64d2dceb18b46d68a88130506 (diff) | |
download | ipsilon-158c4cdefc0bd5b8dabe38685c1bebccc24d656b.tar.gz ipsilon-158c4cdefc0bd5b8dabe38685c1bebccc24d656b.tar.xz ipsilon-158c4cdefc0bd5b8dabe38685c1bebccc24d656b.zip |
Drop usage of self._debug and use self.debug instead
This method was deprecated but still used in a lot of places.
https://fedorahosted.org/ipsilon/ticket/120
Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'ipsilon/util/endpoint.py')
-rw-r--r-- | ipsilon/util/endpoint.py | 10 |
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: |