[Zope3-checkins] CVS: Zope3/src/zope/app/externaleditor - MAINTAINER.txt:1.1 __init__.py:1.1 configure.zcml:1.1 interfaces.py:1.1

Philipp von Weitershausen philikon at philikon.de
Fri Feb 27 09:23:18 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/externaleditor
In directory cvs.zope.org:/tmp/cvs-serv28159/src/zope/app/externaleditor

Added Files:
	MAINTAINER.txt __init__.py configure.zcml interfaces.py 
Log Message:
Moved the externaleditor package to zope.app.


=== Added File Zope3/src/zope/app/externaleditor/MAINTAINER.txt ===
Sidnei da Silva, sidnei at awkly.org


=== Added File Zope3/src/zope/app/externaleditor/__init__.py ===
#
# This file is necessary to make this directory a package.


=== Added File Zope3/src/zope/app/externaleditor/configure.zcml ===
<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:browser="http://namespaces.zope.org/browser"
    i18n_domain="zope"
    >

  <browser:page
      menu="zmi_views"
      title="External Edit"
      name="external_edit"
      for="zope.app.externaleditor.interfaces.IExternallyEditable"
      class=".browser.ExternalEditor"
      permission="zope.View"
      />

  <content class="zope.app.content.file.File">
    <implements
        interface="zope.app.externaleditor.interfaces.IExternallyEditable"
        />
  </content>

</configure>

=== Added File Zope3/src/zope/app/externaleditor/interfaces.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: interfaces.py,v 1.1 2004/02/27 14:23:16 philikon 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