git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
use PLC_RATELIMIT_ENABLED to enable ratelimit aspect
[plcapi.git]
/
aspects
/
__init__.py
diff --git
a/aspects/__init__.py
b/aspects/__init__.py
index
cdab6d6
..
aa7b05c
100644
(file)
--- a/
aspects/__init__.py
+++ b/
aspects/__init__.py
@@
-7,6
+7,8
@@
from aspects.ratelimitaspects import RateLimitAspect
def apply_omf_aspect():
# track all PLC methods to add OMF hooks
weave_class_method(OMFAspect(), Method, "__call__")
+
+def apply_ratelimit_aspect():
weave_class_method(RateLimitAspect(), Method, "__call__")
def apply_debugger_aspect():