Added StringLine schema field ZTK-1.1
authorThierry Florac <tflorac@ulthar.net>
Mon, 26 Mar 2012 15:50:56 +0200
branchZTK-1.1
changeset 128 9f27d8dfc9c6
parent 127 41c13bbe5cde
child 129 6785f5d0823b
Added StringLine schema field
ztfy/utils/schema.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ztfy/utils/schema.py	Mon Mar 26 15:50:56 2012 +0200
@@ -0,0 +1,32 @@
+### -*- coding: utf-8 -*- ####################################################
+##############################################################################
+#
+# Copyright (c) 2012 Thierry Florac <tflorac AT ulthar.net>
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+
+
+# import standard packages
+
+# import Zope3 interfaces
+
+# import local interfaces
+
+# import Zope3 packages
+from zope.schema import TextLine
+
+# import local packages
+
+
+class StringLine(TextLine):
+    """String line field"""
+
+    _type = str