Our framework requires wrapping certain functions in some ugly boilerplate code:
def prefix_myname_suffix(obj):
def actual():
print \'hello world
use either
current_module.new_name = func
or
setattr(current_module, new_name, func)
It seems the solution to your problem would be to make the decorated function act as the original function.
Try using the function mergeFunctionMetadata
from Twisted, found here:
twisted/python/util.py
It makes your decorated function act as the original, hopefully making the framework pick it up.