Commit c1a80e87 authored by Jean-Paul Smets's avatar Jean-Paul Smets Committed by Julien Muchembled

Add TODO about naming conventions of decorators and 'unrestricted_apply'

parent 391ea84e
...@@ -67,7 +67,7 @@ def UnrestrictedMethod(function): ...@@ -67,7 +67,7 @@ def UnrestrictedMethod(function):
""" """
return lambda *args, **kw: unrestricted_apply(function, args, kw) return lambda *args, **kw: unrestricted_apply(function, args, kw)
def unrestricted_apply(function, args=(), kw={}): def unrestricted_apply(function, args=(), kw={}): # XXX-JPS: naming
"""Function to bypass all security checks """Function to bypass all security checks
This function is as dangerous as 'UnrestrictedMethod' decorator. Read its This function is as dangerous as 'UnrestrictedMethod' decorator. Read its
......
...@@ -66,6 +66,7 @@ try: ...@@ -66,6 +66,7 @@ try:
except ImportError: except ImportError:
magic = None magic = None
# XXX-JPS: We need naming conventions and central list of decorators.
def simple_decorator(decorator): def simple_decorator(decorator):
"""Decorator to turn simple function into well-behaved decorator """Decorator to turn simple function into well-behaved decorator
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment