Add 'RPC Exported Function' to the beginning of every docstring on rpc exported functions

This commit is contained in:
Andrew Resch 2009-08-14 22:47:28 +00:00
parent 567a42b0ec
commit 2681acbc8d
1 changed files with 5 additions and 0 deletions

View File

@ -70,6 +70,11 @@ def export(auth_level=AUTH_LEVEL_DEFAULT):
def wrap(func, *args, **kwargs):
func._rpcserver_export = True
func._rpcserver_auth_level = auth_level
doc = func.__doc__
func.__doc__ = "RPC Exported Function\n\n"
if doc:
func.__doc__ += doc
return func
if type(auth_level) is FunctionType: