diff rhodecode/controllers/api/__init__.py @ 3126:703070153bc1 beta

added API method for checking IP
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 31 Dec 2012 01:51:30 +0100
parents 9b92cf5a0cca
children c5169e445fb8
line wrap: on
line diff
--- a/rhodecode/controllers/api/__init__.py	Sun Dec 30 23:06:03 2012 +0100
+++ b/rhodecode/controllers/api/__init__.py	Mon Dec 31 01:51:30 2012 +0100
@@ -86,6 +86,9 @@
 
      """
 
+    def _get_ip_addr(self, environ):
+        return _get_ip_addr(environ)
+
     def _get_method_args(self):
         """
         Return `self._rpc_args` to dispatched controller method
@@ -99,7 +102,7 @@
         controller and if it exists, dispatch to it.
         """
         start = time.time()
-        ip_addr = self._get_ip_addr(environ)
+        ip_addr = self.ip_addr = self._get_ip_addr(environ)
         self._req_id = None
         if 'CONTENT_LENGTH' not in environ:
             log.debug("No Content-Length")