diff options
author | Mark McClain <mark.mcclain@shootq.com> | 2011-01-15 10:49:41 -0500 |
---|---|---|
committer | Mark McClain <mark.mcclain@shootq.com> | 2011-01-15 10:49:41 -0500 |
commit | 563f3f8718b8d6b4696ab007d99a019de1dcc86c (patch) | |
tree | ecb49d580b770e2e217d608cbb87a6802ea5e3bd /pecan/secure.py | |
parent | 5a4d0f98f491e6e01ff4f9396957ded648e92195 (diff) | |
download | pecan-563f3f8718b8d6b4696ab007d99a019de1dcc86c.tar.gz |
cleaned up __all__
Diffstat (limited to 'pecan/secure.py')
-rw-r--r-- | pecan/secure.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pecan/secure.py b/pecan/secure.py index 32d1f62..d66c14d 100644 --- a/pecan/secure.py +++ b/pecan/secure.py @@ -3,7 +3,7 @@ from decorators import _cfg from routing import iscontroller -__all__ = ['Any', 'Protected', 'unlock', 'secure'] +__all__ = ['Any', 'Protected', 'unlocked', 'secure', 'SecureController'] class _Unlocked(object): """ @@ -25,7 +25,6 @@ class _SecureState(object): Any = _SecureState('Any', False) Protected = _SecureState('Protected', True) - def unlocked(func_or_obj): if ismethod(func_or_obj) or isfunction(func_or_obj): _cfg(func_or_obj)['secured'] = Any @@ -33,7 +32,6 @@ def unlocked(func_or_obj): else: return _Unlocked(func_or_obj) - def secure(check_permissions): def wrap(func): cfg = _cfg(func) |