diff rhodecode/controllers/branches.py @ 3749:b950b884ab87 beta

auth decorators are not used anymore on __before__ - this will allow to create a whitelist of API enabled controller functions - moved around functions with _ to beginning of the files to make it cleaner
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 15 Apr 2013 00:46:34 +0200
parents a07e04ef7bb4
children 5293d4bbb1ea
line wrap: on
line diff
--- a/rhodecode/controllers/branches.py	Sat Apr 13 12:51:34 2013 +0200
+++ b/rhodecode/controllers/branches.py	Mon Apr 15 00:46:34 2013 +0200
@@ -38,12 +38,12 @@
 
 class BranchesController(BaseRepoController):
 
+    def __before__(self):
+        super(BranchesController, self).__before__()
+
     @LoginRequired()
     @HasRepoPermissionAnyDecorator('repository.read', 'repository.write',
                                    'repository.admin')
-    def __before__(self):
-        super(BranchesController, self).__before__()
-
     def index(self):
 
         def _branchtags(localrepo):
@@ -72,5 +72,4 @@
                                              key=lambda ctx: ctx[0],
                                              reverse=False))
 
-
         return render('branches/branches.html')