Added note in Plugin.set_api() about Plugin.log attribute being depreciated

This commit is contained in:
Jason Gerard DeRose
2008-12-21 19:58:48 -07:00
parent 9d091c98f1
commit f82c48f775

View File

@@ -367,6 +367,7 @@ class Plugin(ReadOnly):
for name in api:
assert not hasattr(self, name)
setattr(self, name, api[name])
# FIXME: the 'log' attribute is depreciated. See Plugin.__init__()
for name in ('env', 'context', 'log'):
if hasattr(api, name):
assert not hasattr(self, name)