Skip to content

Commit

Permalink
init method removed as predicate is already retrieved in _check_secur…
Browse files Browse the repository at this point in the history
…ity and it didn't do anything
  • Loading branch information
amol- committed Oct 12, 2011
1 parent 2e2a7fd commit f2d9d8f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions tg/controllers/decoratedcontroller.py
Expand Up @@ -40,14 +40,7 @@ class DecoratedController(object):
"""Creates an interface to hang decoration attributes on
controller methods for the purpose of rendering web content.
"""

def __init__(self): # FIXME! #
if hasattr(self, 'allow_only') and self.allow_only is not None:
# Let's turn Controller.allow_only into something useful for
# the @allow_only decorator.
predicate = self.allow_only
#self = allow_only(predicate)(self)


def _is_exposed(self, controller, name):
if hasattr(controller, name):
method = getattr(controller, name)
Expand Down

0 comments on commit f2d9d8f

Please sign in to comment.