--- a/src/pyams_form/terms.py Mon Oct 29 18:15:17 2018 +0100
+++ b/src/pyams_form/terms.py Tue Oct 30 11:00:22 2018 +0100
@@ -12,23 +12,17 @@
__docformat__ = 'restructuredtext'
-
-# import standard library
-
-# import interfaces
-from pyams_form.interfaces.form import IFormLayer
-from z3c.form.interfaces import IWidget, IBoolTerms
+from z3c.form.interfaces import IBoolTerms, IFormLayer, ITerms, IWidget
+from z3c.form.term import BoolTerms as BaseBoolTerms
+from zope.interface import Interface, implementer_only
from zope.schema.interfaces import IBool
-# import packages
from pyams_utils.adapter import adapter_config
-from z3c.form.term import BoolTerms as BaseBoolTerms
-from zope.interface import implementer_only, Interface
-from pyams_utils import _
+from pyams_form import _
-@adapter_config(context=(Interface, IFormLayer, Interface, IBool, IWidget), provides=IBoolTerms)
+@adapter_config(context=(Interface, IFormLayer, Interface, IBool, IWidget), provides=ITerms)
@implementer_only(IBoolTerms)
class BoolTerms(BaseBoolTerms):
"""Default yes and no terms are used by default for IBool fields."""