Rename wraper to wrapper
Change-Id: I279cdab9583112555b965c6c3108e6b199264a45 Closes-Bug: #1489835
This commit is contained in:
parent
8719df3b99
commit
6ed85f7f6b
|
@ -108,7 +108,7 @@ def enforce_wsgi(api_name, act=None):
|
|||
def delete(self, bay_ident):
|
||||
...
|
||||
"""
|
||||
def wraper(fn):
|
||||
def wrapper(fn):
|
||||
action = "%s:%s" % (api_name, (act or fn.__name__))
|
||||
|
||||
@functools.wraps(fn)
|
||||
|
@ -116,4 +116,4 @@ def enforce_wsgi(api_name, act=None):
|
|||
enforce(pecan.request.context, action, None)
|
||||
return fn(self, *args, **kwargs)
|
||||
return handle
|
||||
return wraper
|
||||
return wrapper
|
||||
|
|
Loading…
Reference in New Issue