Back to index

plone3  3.1.7
field.py
Go to the documentation of this file.
00001 ##############################################################################
00002 #
00003 # Copyright (c) 2003-2005 Kupu Contributors. All rights reserved.
00004 #
00005 # This software is distributed under the terms of the Kupu
00006 # License. See LICENSE.txt for license text. For a list of Kupu
00007 # Contributors see CREDITS.txt.
00008 #
00009 ##############################################################################
00010 """HTMLBody field
00011 
00012 $Id: field.py 9879 2005-03-18 12:04:00Z yuppie $
00013 """
00014 
00015 from zope.interface import implements
00016 from zope.schema import Bytes
00017 from zope.schema.fieldproperty import FieldProperty
00018 
00019 from interfaces import IHTMLBody
00020 
00021 class HTMLBody(Bytes):
00022     implements(IHTMLBody)
00023 
00024     html2xhtml1 = FieldProperty(IHTMLBody['html2xhtml1'])