Пример #1
0
import portal_memberdata
import portal_membership
import portal_metadata
import portal_properties
import portal_registration
import portal_skins
import portal_types
import portal_undo
import portal_url
import portal_workflow
import Syndicatable

# BBB: will be removed in CMF 2.2
#      create zope2 interfaces
from Interface.bridge import createZope3Bridge
createZope3Bridge(ICachingPolicyManager, CachingPolicyManager,
                  'CachingPolicyManager')
createZope3Bridge(IContentish, Contentish, 'Contentish')
createZope3Bridge(IContentTypeRegistryPredicate, ContentTypeRegistry,
                  'ContentTypeRegistryPredicate')
createZope3Bridge(IContentTypeRegistry, ContentTypeRegistry,
                  'ContentTypeRegistry')
createZope3Bridge(IDiscussable, Discussions, 'Discussable')
createZope3Bridge(IOldstyleDiscussable, Discussions, 'OldDiscussable')
createZope3Bridge(IDiscussionResponse, Discussions, 'DiscussionResponse')
createZope3Bridge(IDublinCore, DublinCore, 'DublinCore')
createZope3Bridge(ICatalogableDublinCore, DublinCore, 'CatalogableDublinCore')
createZope3Bridge(IMutableDublinCore, DublinCore, 'MutableDublinCore')
createZope3Bridge(IDynamicType, Dynamic, 'DynamicType')
createZope3Bridge(IFolderish, Folderish, 'Folderish')
createZope3Bridge(ICallableOpaqueItem, IOpaqueItems, 'ICallableOpaqueItem')
createZope3Bridge(ICallableOpaqueItemEvents, IOpaqueItems,
Пример #2
0
#
# Copyright (c) 2003 Zope Foundation and Contributors.
#
# 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$
"""

from _content import *
from _tools import *

# BBB: will be removed in CMF 2.2
#      create zope2 interfaces
from Interface.bridge import createZope3Bridge
import Document
import portal_membership

createZope3Bridge(IDocument, Document, 'IDocument')
createZope3Bridge(IMutableDocument, Document, 'IMutableDocument')
createZope3Bridge(IMembershipTool, portal_membership, 'portal_membership')

del createZope3Bridge
Пример #3
0
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
""" CMFDefault.interfaces package.

$Id$
"""

from zope.publisher.interfaces.browser import IDefaultBrowserLayer
from _content import *
from _tools import *


class ICMFDefaultSkin(IDefaultBrowserLayer):

    """CMF default skin.
    """


# BBB: will be removed in CMF 2.2
#      create zope2 interfaces
from Interface.bridge import createZope3Bridge
import Document
import portal_membership

createZope3Bridge(IDocument, Document, 'IDocument')
createZope3Bridge(IMutableDocument, Document, 'IMutableDocument')
createZope3Bridge(IMembershipTool, portal_membership, 'portal_membership')

del createZope3Bridge
Пример #4
0
        self.edit(**command).
        """

# XXX: Interfaces have to specify the signature.
##    def edit(**kw):
##        """\
##        The signature of this method should be specific to the
##        criterion.  Using the values in the attribute
##        '_editableAttributes', the Topic can apply the right
##        commands to each criteria object as its being edited without
##        having to know too much about the structure.
##        """

    def getCriteriaItems():
        """\
        Return a sequence of key-value tuples, each representing
        a value to be injected into the query dictionary (and,
        therefore, tailored to work with the catalog).
        """


# BBB: will be removed in CMF 2.2
#      create zope2 interfaces
from Interface.bridge import createZope3Bridge
import Criterion

createZope3Bridge(ICriterion, Criterion, 'Criterion')

from Criterion import Criterion
del createZope3Bridge
Пример #5
0
import portal_memberdata
import portal_membership
import portal_metadata
import portal_properties
import portal_registration
import portal_skins
import portal_types
import portal_undo
import portal_url
import portal_workflow
import Syndicatable

# BBB: will be removed in CMF 2.2
#      create zope2 interfaces
from Interface.bridge import createZope3Bridge
createZope3Bridge(ICachingPolicyManager, CachingPolicyManager,
                  'CachingPolicyManager')
createZope3Bridge(IContentish, Contentish, 'Contentish')
createZope3Bridge(IContentTypeRegistryPredicate, ContentTypeRegistry,
                  'ContentTypeRegistryPredicate')
createZope3Bridge(IContentTypeRegistry, ContentTypeRegistry,
                  'ContentTypeRegistry')
createZope3Bridge(IDiscussable, Discussions, 'Discussable')
createZope3Bridge(IOldstyleDiscussable, Discussions, 'OldDiscussable')
createZope3Bridge(IDiscussionResponse, Discussions, 'DiscussionResponse')
createZope3Bridge(IDublinCore, DublinCore, 'DublinCore')
createZope3Bridge(ICatalogableDublinCore, DublinCore, 'CatalogableDublinCore')
createZope3Bridge(IMutableDublinCore, DublinCore, 'MutableDublinCore')
createZope3Bridge(IDynamicType, Dynamic, 'DynamicType')
createZope3Bridge(IFolderish, Folderish, 'Folderish')
createZope3Bridge(ICallableOpaqueItem, IOpaqueItems, 'ICallableOpaqueItem')
createZope3Bridge(ICallableOpaqueItemEvents, IOpaqueItems,
Пример #6
0
        
    def getDiffs():
        """Returns the list of differences between the two objects.

        Each difference is a single object implementing the IDifference interface"""

    def getSubDiffs():
        """If the ChangeSet was computed recursively, returns a list
           of ChangeSet objects representing subobject differences

           Each ChangeSet will have the same ID as the objects whose
           difference it represents.
           """

    def getAddedItems():
        """If the ChangeSet was computed recursively, returns the list
        of IDs of items that were added.

        A copy of these items is available as a cubject of the ChangeSet
        """

    def getRemovedItems():
        """If the ChangeSet was computed recursively, returns the list
        of IDs of items that were removed"""

import portal_diff
from Products.CMFDiffTool.interfaces import IChangeSet as csmod
createZope3Bridge(IDiffTool, portal_diff, 'portal_diff')
createZope3Bridge(IDifference, portal_diff, 'IDifference')
createZope3Bridge(IChangeSet, csmod, 'IChangeSet')
Пример #7
0
##############################################################################
#
# 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.
#
##############################################################################
""" Order support interfaces.

$Id: IOrderSupport.py 40222 2005-11-18 15:46:28Z andreasjung $
"""


# create IOrderedContainer
from Interface.bridge import createZope3Bridge
from OFS.interfaces import IOrderedContainer as z3IOrderedContainer
import IOrderSupport

createZope3Bridge(z3IOrderedContainer, IOrderSupport, 'IOrderedContainer')

del createZope3Bridge
del z3IOrderedContainer
del IOrderSupport
Пример #8
0
##############################################################################
#
# Copyright (c) 2002 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.
#
##############################################################################
"""Write lock interfaces.

$Id: WriteLockInterface.py 40222 2005-11-18 15:46:28Z andreasjung $
"""


# create WriteLockInterface
from Interface.bridge import createZope3Bridge
from interfaces import ILockItem
from interfaces import IWriteLock
import WriteLockInterface

createZope3Bridge(ILockItem, WriteLockInterface, 'LockItemInterface')
createZope3Bridge(IWriteLock, WriteLockInterface, 'WriteLockInterface')

del createZope3Bridge
del ILockItem
del IWriteLock
Пример #9
0
##############################################################################
#
# Copyright (c) 2002 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.
#
##############################################################################
"""Write lock interfaces.

$Id$
"""


# create WriteLockInterface
from Interface.bridge import createZope3Bridge
from interfaces import ILockItem
from interfaces import IWriteLock
import WriteLockInterface

createZope3Bridge(ILockItem, WriteLockInterface, 'LockItemInterface')
createZope3Bridge(IWriteLock, WriteLockInterface, 'WriteLockInterface')

del createZope3Bridge
del ILockItem
del IWriteLock
Пример #10
0
##############################################################################
#
# 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.
#
##############################################################################
""" Order support interfaces.

$Id$
"""

# create IOrderedContainer
from Interface.bridge import createZope3Bridge
from OFS.interfaces import IOrderedContainer as z3IOrderedContainer
import IOrderSupport

createZope3Bridge(z3IOrderedContainer, IOrderSupport, 'IOrderedContainer')

del createZope3Bridge
del z3IOrderedContainer
del IOrderSupport
Пример #11
0
from constrains import ISelectableConstrainTypes
from structure import INonStructuralFolder
from view import IBrowserDefault
from view import ISelectableBrowserDefault
from view import IDynamicViewTypeInformation
from factory import IFactoryTool
from translationservice import ITranslationServiceTool
from breadcrumbs import IHideFromBreadcrumbs

import PropertiesTool
import PloneBaseTool
import PloneControlPanel
import InterfaceTool
import ConstrainTypes
import NonStructuralFolder

from Interface.bridge import createZope3Bridge

createZope3Bridge(IPropertiesTool, PropertiesTool, 'IPropertiesTool')
createZope3Bridge(ISimpleItemWithProperties, PropertiesTool, 'ISimpleItemWithProperties')
createZope3Bridge(IPloneBaseTool, PloneBaseTool, 'IPloneBaseTool')
createZope3Bridge(IControlPanel, PloneControlPanel, 'IControlPanel')
createZope3Bridge(IInterfaceTool, InterfaceTool, 'IInterfaceTool')
createZope3Bridge(IConstrainTypes, ConstrainTypes, 'IConstrainTypes')
createZope3Bridge(ISelectableConstrainTypes, ConstrainTypes, 'ISelectableConstrainTypes')
createZope3Bridge(INonStructuralFolder, NonStructuralFolder, 'INonStructuralFolder')

# BBB attach IPloneBaseTool to InterfaceTool module to make the
#     'testAvailableInterfaces' test pass
createZope3Bridge(IPloneBaseTool, InterfaceTool, 'IPloneBaseTool')
Пример #12
0
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.

## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.

## You should have received a copy of the GNU General Public License
## along with this program; see the file COPYING. If not, write to the
## Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
CMFPlacefulWorkflow.interfaces package
"""
__version__ = "$Revision: 39673 $"
# $Source: /cvsroot/ingeniweb/PloneSubscription/SubscriptionTool.py,v $
# $Id: __init__.py 39673 2007-03-24 00:12:36Z encolpe $
__docformat__ = 'restructuredtext'

from Interface.bridge import createZope3Bridge

from portal_placeful_workflow import IPlacefulWorkflowTool, IWorkflowPolicyDefinition

# Zope 2 interfaces definition
import PlacefulWorkflow
import WorkflowPolicyDefinition
createZope3Bridge(IPlacefulWorkflowTool, PlacefulWorkflow, 'IPlacefulWorkflowTool')
createZope3Bridge(IWorkflowPolicyDefinition, WorkflowPolicyDefinition, 'IWorkflowPolicyDefinition')
Пример #13
0
# 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.
#
##############################################################################
"""Pluggable Index interfaces.

$Id: PluggableIndex.py 40222 2005-11-18 15:46:28Z andreasjung $
"""


# create PluggableIndexInterface, UniqueValueIndex, SortIndex
from Interface.bridge import createZope3Bridge
from Products.PluginIndexes.interfaces import IPluggableIndex
from Products.PluginIndexes.interfaces import ISortIndex
from Products.PluginIndexes.interfaces import IUniqueValueIndex
import PluggableIndex

createZope3Bridge(IPluggableIndex, PluggableIndex, 'PluggableIndexInterface')
createZope3Bridge(ISortIndex, PluggableIndex, 'SortIndex')
createZope3Bridge(IUniqueValueIndex, PluggableIndex, 'UniqueValueIndex')

del createZope3Bridge
del IPluggableIndex
del ISortIndex
del IUniqueValueIndex
del PluggableIndex
Пример #14
0
##############################################################################
#
# Copyright (c) 2002 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.
#
##############################################################################
"""
$Id: IZCatalog.py 40222 2005-11-18 15:46:28Z andreasjung $
"""


# create IZCatalog
from Interface.bridge import createZope3Bridge
from interfaces import IZCatalog as z3IZCatalog
import IZCatalog

createZope3Bridge(z3IZCatalog, IZCatalog, 'IZCatalog')

del createZope3Bridge
del z3IZCatalog
Пример #15
0
        self.edit(**command).
        """

# XXX: Interfaces have to specify the signature.
##    def edit(**kw):
##        """\
##        The signature of this method should be specific to the
##        criterion.  Using the values in the attribute
##        '_editableAttributes', the Topic can apply the right
##        commands to each criteria object as its being edited without
##        having to know too much about the structure.
##        """

    def getCriteriaItems():
        """\
        Return a sequence of key-value tuples, each representing
        a value to be injected into the query dictionary (and,
        therefore, tailored to work with the catalog).
        """


# BBB: will be removed in CMF 2.2
#      create zope2 interfaces
from Interface.bridge import createZope3Bridge
import Criterion

createZope3Bridge(ICriterion, Criterion, 'Criterion')

from Criterion import Criterion
del createZope3Bridge
Пример #16
0
from _base import IDynamicViewTypeInformation
from _base import IBrowserDefault
from _base import ISelectableBrowserDefault

from Products.CMFDynamicViewFTI import interfaces
from Interface.bridge import createZope3Bridge

createZope3Bridge(IDynamicViewTypeInformation, interfaces, 'IDynamicViewTypeInformation')
createZope3Bridge(IBrowserDefault, interfaces, 'IBrowserDefault')
createZope3Bridge(ISelectableBrowserDefault, interfaces, 'ISelectableBrowserDefault')
Пример #17
0
##############################################################################
#
# Copyright (c) 2002 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.
#
##############################################################################
"""Lexicon z2 interfaces.

$Id: ILexicon.py 40222 2005-11-18 15:46:28Z andreasjung $
"""


# create ILexicon
from Interface.bridge import createZope3Bridge
from interfaces import ILexicon as z3ILexicon
import ILexicon

createZope3Bridge(z3ILexicon, ILexicon, 'ILexicon')

del createZope3Bridge
del z3ILexicon
Пример #18
0
##############################################################################
#
# Copyright (c) 2002 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.
#
##############################################################################
"""
$Id$
"""

# create IZCatalog
from Interface.bridge import createZope3Bridge
from interfaces import IZCatalog as z3IZCatalog
import IZCatalog

createZope3Bridge(z3IZCatalog, IZCatalog, 'IZCatalog')

del createZope3Bridge
del z3IZCatalog