X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FAPI.py;h=191720dde018ab54d8fbcac2c1ef6b245036226d;hb=aee4a5354abde7ae9363053bce1a7117a8ed7b5e;hp=0d228f7f7318bb65be1b686864b4f63882586486;hpb=9df91974270bdab09df4c08a94108a4cfac0d187;p=plcapi.git diff --git a/PLC/API.py b/PLC/API.py index 0d228f7..191720d 100644 --- a/PLC/API.py +++ b/PLC/API.py @@ -5,8 +5,6 @@ # Mark Huang # # Copyright (C) 2004-2006 The Trustees of Princeton University -# $Id$ -# $URL$ # import sys @@ -141,11 +139,14 @@ class PLCAPI: else: raise PLCAPIError, "Unsupported database type " + self.config.PLC_DB_TYPE - # Aspects modify the API injecting code before/after method - # calls. As of now we only have aspects for OMF integration, - # that's why we enable aspects only if PLC_OMF is set to true. + # Aspects modify the API by injecting code before, after or + # around method calls. -- http://github.com/baris/pyaspects/blob/master/README + # + # As of now we only have aspects for OMF integration, that's + # why we enable aspects only if PLC_OMF is set to true. if self.config.PLC_OMF_ENABLED: - from aspects import apply_aspects; apply_aspects() + from aspects import apply_omf_aspect + apply_omf_aspect() def callable(self, method):