Add 'RPC Exported Function' to the beginning of every docstring on rpc exported functions
This commit is contained in:
parent
567a42b0ec
commit
2681acbc8d
@ -70,6 +70,11 @@ def export(auth_level=AUTH_LEVEL_DEFAULT):
|
|||||||
def wrap(func, *args, **kwargs):
|
def wrap(func, *args, **kwargs):
|
||||||
func._rpcserver_export = True
|
func._rpcserver_export = True
|
||||||
func._rpcserver_auth_level = auth_level
|
func._rpcserver_auth_level = auth_level
|
||||||
|
doc = func.__doc__
|
||||||
|
func.__doc__ = "RPC Exported Function\n\n"
|
||||||
|
if doc:
|
||||||
|
func.__doc__ += doc
|
||||||
|
|
||||||
return func
|
return func
|
||||||
|
|
||||||
if type(auth_level) is FunctionType:
|
if type(auth_level) is FunctionType:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user