X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=aspects%2F__init__.py;h=41cbe778fba7fbe1653708d3ae05d0bb3d6a82a6;hb=refs%2Fheads%2Fremove-xmlrpc;hp=1df5a9f08870e6fa2b4c2e1285b590ab1eff8556;hpb=661935147a055b7c1b35c21292568e10161887dd;p=plcapi.git diff --git a/aspects/__init__.py b/aspects/__init__.py index 1df5a9f..41cbe77 100644 --- a/aspects/__init__.py +++ b/aspects/__init__.py @@ -1,16 +1,10 @@ - - from pyaspects.weaver import weave_class_method from PLC.Method import Method -from aspects.omfaspects import OMFAspect - - - -def apply_omf_aspect(): - # track all PLC methods to add OMF hooks - weave_class_method(OMFAspect(), Method, "__call__") +from aspects.ratelimitaspects import RateLimitAspect +def apply_ratelimit_aspect(): + weave_class_method(RateLimitAspect(), Method, "__call__") def apply_debugger_aspect(): # just log all method calls w/ their parameters