[CMF-checkins] CVS: Products/CMFDefault/z2interfaces -
Document.py:1.1.2.1 __init__.py:1.1.2.1 portal_membership.py:1.1.2.1
Tres Seaver
tseaver at palladion.com
Fri Jul 15 18:41:22 EDT 2005
Update of /cvs-repository/Products/CMFDefault/z2interfaces
In directory cvs.zope.org:/tmp/cvs-serv16776/CMFDefault/z2interfaces
Added Files:
Tag: tseaver-z3_interfaces-branch
Document.py __init__.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/z2interfaces/Document.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: Document.py,v 1.1.2.1 2005/07/15 22:41:22 tseaver Exp $
"""
from 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/z2interfaces/__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.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.
#
##############################################################################
""" CMFDefault.interfaces package.
$Id: __init__.py,v 1.1.2.1 2005/07/15 22:41:22 tseaver Exp $
"""
=== Added File Products/CMFDefault/z2interfaces/portal_membership.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: portal_membership.py,v 1.1.2.1 2005/07/15 22:41:22 tseaver Exp $
"""
from Products.CMFCore.interfaces.portal_membership \
import portal_membership as BaseInterface
class portal_membership(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
"""
More information about the CMF-checkins
mailing list