diff pylons_app/controllers/tags.py @ 245:a83a1799480c

Reimplemented way of caching repos list, hg model now get's repos objects right from cached dict, this way we skipp creating instances of MercurialRepository and gain performance. Some import cleanup
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 03 Jun 2010 00:04:48 +0200
parents b68b2246e5a6
children 3782a6d698af
line wrap: on
line diff
--- a/pylons_app/controllers/tags.py	Tue Jun 01 22:19:03 2010 +0200
+++ b/pylons_app/controllers/tags.py	Thu Jun 03 00:04:48 2010 +0200
@@ -1,15 +1,11 @@
+from pylons import tmpl_context as c
+from pylons_app.lib.auth import LoginRequired
+from pylons_app.lib.base import BaseController, render
+from pylons_app.model.hg_model import HgModel
 import logging
 
-from pylons import tmpl_context as c, app_globals as g, session, request, config, url
-from pylons.controllers.util import abort, redirect
-
-from pylons_app.lib.base import BaseController, render
-from pylons_app.lib.utils import get_repo_slug
-from pylons_app.model.hg_model import HgModel
-from pylons_app.lib.auth import LoginRequired
 log = logging.getLogger(__name__)
 
-
 class TagsController(BaseController):
     
     @LoginRequired()