[Checkins] SVN: zope.app.component/trunk/ browser:tool directive and all zope.component.browser metaconfigure stuff
Dan Korostelev
nadako at gmail.com
Sat Dec 13 17:57:02 EST 2008
Log message for revision 94045:
browser:tool directive and all zope.component.browser metaconfigure stuff
Changed:
U zope.app.component/trunk/CHANGES.txt
D zope.app.component/trunk/src/zope/app/component/browser/meta.zcml
D zope.app.component/trunk/src/zope/app/component/browser/metaconfigure.py
D zope.app.component/trunk/src/zope/app/component/browser/metadirectives.py
-=-
Modified: zope.app.component/trunk/CHANGES.txt
===================================================================
--- zope.app.component/trunk/CHANGES.txt 2008-12-13 22:55:45 UTC (rev 94044)
+++ zope.app.component/trunk/CHANGES.txt 2008-12-13 22:57:02 UTC (rev 94045)
@@ -14,6 +14,8 @@
* zope:content and zope:localUtility directives.
* zope:factory directive.
* deprecated imports in zope.component.metaconfigure
+ * browser:tool directive and all zope.component.browser
+ meta.zcml stuff.
- Remove "back35" extras_require as it doesn't make
any sense now.
Deleted: zope.app.component/trunk/src/zope/app/component/browser/meta.zcml
===================================================================
--- zope.app.component/trunk/src/zope/app/component/browser/meta.zcml 2008-12-13 22:55:45 UTC (rev 94044)
+++ zope.app.component/trunk/src/zope/app/component/browser/meta.zcml 2008-12-13 22:57:02 UTC (rev 94045)
@@ -1,11 +0,0 @@
-<configure
- xmlns="http://namespaces.zope.org/zope"
- xmlns:meta="http://namespaces.zope.org/meta">
-
- <meta:directive
- namespace="http://namespaces.zope.org/browser"
- name="tool"
- schema=".metadirectives.IUtilityToolDirective"
- handler=".metaconfigure.tool"/>
-
-</configure>
Deleted: zope.app.component/trunk/src/zope/app/component/browser/metaconfigure.py
===================================================================
--- zope.app.component/trunk/src/zope/app/component/browser/metaconfigure.py 2008-12-13 22:55:45 UTC (rev 94044)
+++ zope.app.component/trunk/src/zope/app/component/browser/metaconfigure.py 2008-12-13 22:57:02 UTC (rev 94045)
@@ -1,26 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2001, 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.
-#
-##############################################################################
-"""Configuration handlers for 'tool' directive.
-
-$Id$
-"""
-
-import warnings
-
-
-def tool(_context, interface, title, description=None,
- folder="tools", unique=False):
- warnings.warn("Tools are deprecated and no-longer used. "
- "The tool directive will go away in Zope 3.5",
- DeprecationWarning)
Deleted: zope.app.component/trunk/src/zope/app/component/browser/metadirectives.py
===================================================================
--- zope.app.component/trunk/src/zope/app/component/browser/metadirectives.py 2008-12-13 22:55:45 UTC (rev 94044)
+++ zope.app.component/trunk/src/zope/app/component/browser/metadirectives.py 2008-12-13 22:57:02 UTC (rev 94045)
@@ -1,60 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2001, 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.
-#
-##############################################################################
-"""`tool` directive for `browser` namespace
-
-$Id$
-"""
-import zope.configuration.fields
-from zope.interface import Interface
-
-
-class IUtilityToolDirective(Interface):
- """ *BBB: DEPRECATED*
-
- Tools are deprecated and no-longer used.
- The tool directive will go away in Zope 3.5.
-
- (Directive for creating new utility-based tools.)
- """
-
- folder = zope.configuration.fields.PythonIdentifier(
- title=u"Destination Folder",
- description=u"""Destination Folder in which the tool instances are
- placed.""",
- required=False,
- default=u"tools")
-
- title = zope.configuration.fields.MessageID(
- title=u"Title",
- description=u"""The title of the tool.""",
- required=False
- )
-
- description = zope.configuration.fields.MessageID(
- title=u"Description",
- description=u"Narrative description of what the tool represents.",
- required=False
- )
-
- interface = zope.configuration.fields.GlobalInterface(
- title=u"Interface",
- description=u"Interface used to filter out the available entries in a \
- tool",
- required=True)
-
- unique = zope.configuration.fields.Bool(
- title=u"Unique",
- description=u"Specifies whether the tool is unique to a site manager.",
- required=False,
- default=False)
More information about the Checkins
mailing list