diff pylons_app/controllers/error.py @ 191:b68b2246e5a6

Authenticated controller with LoginRequired decorator, and cleaned __before__ (used in baseController now). fixed User for clone url with logged in session user. Removed login form from admin.
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 22 May 2010 01:47:07 +0200
parents 2811259dc12d
children 70f645fa97cc
line wrap: on
line diff
--- a/pylons_app/controllers/error.py	Sat May 22 01:43:42 2010 +0200
+++ b/pylons_app/controllers/error.py	Sat May 22 01:47:07 2010 +0200
@@ -20,12 +20,6 @@
     This behaviour can be altered by changing the parameters to the
     ErrorDocuments middleware in your config/middleware.py file.
     """
-#
-    def __before__(self):
-        c.repos_prefix = config['repos_name']
-        
-        c.repo_name = request.environ['pylons.original_request']\
-            .environ.get('PATH_INFO').split('/')[1]
         
     def document(self):
         resp = request.environ.get('pylons.original_response')