src/pyams_utils/schema.py
changeset 36 7398e25bad99
parent 32 c784991b55a4
child 110 b1281938f057
--- a/src/pyams_utils/schema.py	Wed May 20 12:41:37 2015 +0200
+++ b/src/pyams_utils/schema.py	Wed Jun 17 10:01:29 2015 +0200
@@ -17,13 +17,13 @@
 import string
 
 # import interfaces
-from zope.schema.interfaces import ITextLine, IDecimal, IList, IDict, ITuple, IPassword
+from zope.schema.interfaces import IText, ITextLine, IDecimal, IList, IDict, ITuple, IPassword
 
 # import Zope3 packages
 from persistent.list import PersistentList as PersistentListType
 from persistent.mapping import PersistentMapping
 from zope.interface import implementer
-from zope.schema import TextLine, Decimal, List, Dict, Tuple, Password, ValidationError
+from zope.schema import Text, TextLine, Decimal, List, Dict, Tuple, Password, ValidationError
 
 # import local packages
 
@@ -82,6 +82,19 @@
 
 
 #
+# HTML field
+#
+
+class IHTMLField(IText):
+    """HTML field interface"""
+
+
+@implementer(IHTMLField)
+class HTMLField(Text):
+    """HTML field"""
+
+
+#
 # Color field
 #