diff rhodecode/lib/middleware/simplegit.py @ 4186:7e5f8c12a3fc kallithea-2.2.5-rebrand

First step in two-part process to rename directories to kallithea. This first step is to change all references in the files where they refer to the old directory name.
author Bradley M. Kuhn <bkuhn@sfconservancy.org>
date Wed, 02 Jul 2014 19:04:28 -0400
parents ffd45b185016
children
line wrap: on
line diff
--- a/rhodecode/lib/middleware/simplegit.py	Wed Jul 02 19:04:00 2014 -0400
+++ b/rhodecode/lib/middleware/simplegit.py	Wed Jul 02 19:04:28 2014 -0400
@@ -12,7 +12,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 """
-rhodecode.lib.middleware.simplegit
+kallithea.lib.middleware.simplegit
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 SimpleGit middleware for handling git protocol request (push/clone etc.)
@@ -34,15 +34,15 @@
 from paste.httpheaders import REMOTE_USER, AUTH_TYPE
 from webob.exc import HTTPNotFound, HTTPForbidden, HTTPInternalServerError, \
     HTTPNotAcceptable
-from rhodecode.model.db import User, RhodeCodeUi
+from kallithea.model.db import User, RhodeCodeUi
 
-from rhodecode.lib.utils2 import safe_str, fix_PATH, get_server_url,\
+from kallithea.lib.utils2 import safe_str, fix_PATH, get_server_url,\
     _set_extras
-from rhodecode.lib.base import BaseVCSController
-from rhodecode.lib.utils import make_ui, is_valid_repo
-from rhodecode.lib.exceptions import HTTPLockedRC
-from rhodecode.lib.hooks import pre_pull
-from rhodecode.lib import auth_modules
+from kallithea.lib.base import BaseVCSController
+from kallithea.lib.utils import make_ui, is_valid_repo
+from kallithea.lib.exceptions import HTTPLockedRC
+from kallithea.lib.hooks import pre_pull
+from kallithea.lib import auth_modules
 
 log = logging.getLogger(__name__)
 
@@ -157,7 +157,7 @@
 
         # extras are injected into UI object and later available
         # in hooks executed by rhodecode
-        from rhodecode import CONFIG
+        from kallithea import CONFIG
         server_url = get_server_url(environ)
         extras = {
             'ip': ip_addr,
@@ -222,7 +222,7 @@
         :param repo_path: full path to the repository
         """
 
-        from rhodecode.lib.middleware.pygrack import make_wsgi_app
+        from kallithea.lib.middleware.pygrack import make_wsgi_app
         app = make_wsgi_app(
             repo_root=safe_str(self.basepath),
             repo_name=repo_name,
@@ -275,13 +275,13 @@
         """
         Handles pull action, push is handled by post-receive hook
         """
-        from rhodecode.lib.hooks import log_pull_action
+        from kallithea.lib.hooks import log_pull_action
         service = environ['QUERY_STRING'].split('=')
 
         if len(service) < 2:
             return
 
-        from rhodecode.model.db import Repository
+        from kallithea.model.db import Repository
         _repo = Repository.get_by_repo_name(repo_name)
         _repo = _repo.scm_instance