[CMF-checkins] CVS: Products/CMFDefault/interfaces - _content.py:1.1.2.1 _tools.py:1.1.2.1 __init__.py:1.5.18.1 Document.py:NONE portal_membership.py:NONE

Tres Seaver tseaver at palladion.com
Fri Jul 15 18:41:52 EDT 2005


Update of /cvs-repository/Products/CMFDefault/interfaces
In directory cvs.zope.org:/tmp/cvs-serv16776/CMFDefault/interfaces

Modified Files:
      Tag: tseaver-z3_interfaces-branch
	__init__.py 
Added Files:
      Tag: tseaver-z3_interfaces-branch
	_content.py _tools.py 
Removed Files:
      Tag: tseaver-z3_interfaces-branch
	Document.py portal_membership.py 
Log Message:


Branch for Z3-ification of CMF interfaces

 - All interfaces declared in the CMF are now Zope3-style interfaces
   (the one remaining exception is to leave Zope2's
   'webdav.WriteLockInterface' declared by CMFCore.PortalContent and
   derivatives.).

TOOD

  - Clean up XXX'es noted during this pass.


=== Added File Products/CMFDefault/interfaces/_content.py ===
##############################################################################
#
# Copyright (c) 2005 Zope Corporation and Contributors. 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.
#
##############################################################################
""" Document content type interfaces.

$Id: _content.py,v 1.1.2.1 2005/07/15 22:41:20 tseaver Exp $
"""

from zope.interface import Interface


class IDocument(Interface):

    """ Textual content, in one of several formats.

    o Allowed formats include: structured text, HTML, plain text.
    """

    def CookedBody():
        """ Get the "cooked" (ready for presentation) form of the text.
        """

    def EditableBody():
        """ Get the "raw" (as edited) form of the text.
        """

class IMutableDocument(IDocument):

    """ Updatable form of IDocument.
    """

    def edit(text_format, text, file='', safety_belt=''):
        """ Update the document.

        o 'safety_belt', if passed, must match the value issued when the edit
        began.
        """


=== Added File Products/CMFDefault/interfaces/_tools.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.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.
#
##############################################################################
""" Extended membership tool interface.

$Id: _tools.py,v 1.1.2.1 2005/07/15 22:41:20 tseaver Exp $
"""

from Products.CMFCore.interfaces import IMembershipTool as BaseInterface


class IMembershipTool(BaseInterface):
    """ Declare product-specific APIs for CMFDefault's tool.
    """

    def setMembersFolderById(id=''):
        """ Set the members folder object by its id.

        The members folder has to be in the same container as the membership
        tool. id is the id of an existing folder. If id is empty, member areas
        are disabled.

        Permission -- Manage portal
        """


=== Products/CMFDefault/interfaces/__init__.py 1.5 => 1.5.18.1 ===
--- Products/CMFDefault/interfaces/__init__.py:1.5	Thu Aug 12 11:07:41 2004
+++ Products/CMFDefault/interfaces/__init__.py	Fri Jul 15 18:41:20 2005
@@ -14,3 +14,5 @@
 
 $Id$
 """
+from _tools import *
+from _content import *

=== Removed File Products/CMFDefault/interfaces/Document.py ===

=== Removed File Products/CMFDefault/interfaces/portal_membership.py ===



More information about the CMF-checkins mailing list