[Zope3-checkins] CVS: Zope3/src/zope/products/externaleditor/interfaces - __init__.py:1.1

Sidnei da Silva sidnei at x3ng.com.br
Fri Jan 30 17:20:56 EST 2004


Update of /cvs-repository/Zope3/src/zope/products/externaleditor/interfaces
In directory cvs.zope.org:/tmp/cvs-serv20134/src/zope/products/externaleditor/interfaces

Added Files:
	__init__.py 
Log Message:
Initial port of Casey Duncan's External Editor. Needs to declare some content (like zope.app.content.file.File) IExternallyEditable to make real use of it, but it should work.


=== Added File Zope3/src/zope/products/externaleditor/interfaces/__init__.py ===
##############################################################################
# Copyright (c) 2003 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (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.
##############################################################################
"""
$Id: __init__.py,v 1.1 2004/01/30 22:20:54 sidnei Exp $
"""
from zope.interface import Interface

class IExternallyEditable(Interface):
    """Just a marker interface to signal to Zope
    that this object can be edited externally using
    Casey Duncan's External Editor.

    For an object to be externally editable there
    are three requirements:

    1. It needs to declare that it implements this interface
       to signal the presentation service that a External Edit
       action should be available.

    2. It needs to have an adapter for the interface
       ``zope.app.interfaces.file.IReadFile``.

    3. It needs to have a ``PUT`` view which receive the content
       back from the External Editor client and update the
       object, optimally using an adapter to the interface
       ``zope.app.interfaces.file.IWriteFile`` (but not
       necessarily).
    """




More information about the Zope3-Checkins mailing list