Author: andar

Revision: 5667

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

Diff:
Modified: trunk/deluge/core/rpcserver.py
===================================================================
--- trunk/deluge/core/rpcserver.py      2009-08-13 05:02:39 UTC (rev 5666)
+++ trunk/deluge/core/rpcserver.py      2009-08-14 22:47:28 UTC (rev 5667)
@@ -70,6 +70,11 @@
     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:



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to