Annotation of kupu/zope3/interfaces.py, revision 1.1
1.1 ! dwinter 1: ##############################################################################
! 2: #
! 3: # Copyright (c) 2003-2005 Kupu Contributors. All rights reserved.
! 4: #
! 5: # This software is distributed under the terms of the Kupu
! 6: # License. See LICENSE.txt for license text. For a list of Kupu
! 7: # Contributors see CREDITS.txt.
! 8: #
! 9: ##############################################################################
! 10: """kupu interfaces for Zope3
! 11:
! 12: kupu for Zope3 consist of a an IHTMLBody field and a widget (browser
! 13: view) to a zope.schema field that we call HTMLBody (since it contains
! 14: the contents of an HTML body). As a widget, it can make no assumptions
! 15: whatsoever on the object that its field is being part of. It can only
! 16: make assumptions on the field itself.
! 17:
! 18: We therefore also define the IKupuAsynchronousCapable, a marker
! 19: interface that can be set on content objects (even on an object per
! 20: object basis) and tells the Zope3 view machiner that our special Kupu
! 21: views, the ones that make asynchronous editing possible, apply.
! 22:
! 23: $Id: interfaces.py 9879 2005-03-18 12:04:00Z yuppie $
! 24: """
! 25:
! 26: from zope.interface import Interface
! 27: from zope.schema.interfaces import IBytes
! 28: from zope.schema import Bool
! 29:
! 30: class IHTMLBody(IBytes):
! 31: """A field that stores the body of an HTML document.
! 32: """
! 33:
! 34: html2xhtml1 = Bool(
! 35: title=u"Convert browser generated HTML to well-formed XHTML1",
! 36: default=False
! 37: )
! 38:
! 39: class IKupuAsynchronousCapable(Interface):
! 40: """Any content object that wants to support kupu asynchore editing
! 41: will have to implement this marker interface
! 42: """
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>