[Zope-Checkins] SVN: Zope/branches/tseaver-zope.app_delenda_est/ Delenda indeed.
Log message for revision 110398: Delenda indeed. Changed: D Zope/branches/tseaver-zope.app_delenda_est/ -=- ___ Zope-Checkins maillist - Zope-Checkins@zope.org https://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] SVN: Zope/branches/tseaver-zope.app_delenda_est/
Log message for revision 99900: Changed: A Zope/branches/tseaver-zope.app_delenda_est/ -=- ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] SVN: Zope/branches/tseaver-zope.app_delenda_est/doc/CHANGES.rst ReSTX fixes
Log message for revision 99911: ReSTX fixes Changed: U Zope/branches/tseaver-zope.app_delenda_est/doc/CHANGES.rst -=- Modified: Zope/branches/tseaver-zope.app_delenda_est/doc/CHANGES.rst === --- Zope/branches/tseaver-zope.app_delenda_est/doc/CHANGES.rst 2009-05-13 19:27:25 UTC (rev 99910) +++ Zope/branches/tseaver-zope.app_delenda_est/doc/CHANGES.rst 2009-05-13 19:38:23 UTC (rev 99911) @@ -40,7 +40,7 @@ transaction is closed. - Fix BBB regression which prevented setting browser ID cookies from - browser ID managers created before the 'HTTPOnly' feature landed. + browser ID managers created before the ``HTTPOnly`` feature landed. https://bugs.launchpad.net/bugs/374816 - RESPONSE.handle_errors was wrongly set (to debug, should have been @@ -61,11 +61,11 @@ Restructuring + -- No longer depend on `zope.app.locales`. Zope2 uses almost none of the +- No longer depend on ``zope.app.locales``. Zope2 uses almost none of the translations provided in the package and is not required for most projects. The decision to include locales is left to the application developer now. -- Removed the dependency on `zope.app.testing` in favor of providing a more +- Removed the dependency on ``zope.app.testing`` in favor of providing a more minimal placeless setup as part of ZopeTestCase for our own tests. - updated to ZODB 3.9.0b1 @@ -73,12 +73,12 @@ Features Added ++ - zExceptions.convertExceptionType: new API, breaking out conversion of - exception names to exception types from 'upgradeException'. + exception names to exception types from ``upgradeException``. -- Extended BrowserIdManager to expose the 'HTTPOnly' attribute for its +- Extended BrowserIdManager to expose the ``HTTPOnly`` attribute for its cookie. Also via https://bugs.launchpad.net/zope2/+bug/367393 . -- Added support for an optional 'HTTPOnly' attribute of cookies (see +- Added support for an optional ``HTTPOnly`` attribute of cookies (see http://www.owasp.org/index.php/HTTPOnly). Patch from Stephan Hofmockel, via https://bugs.launchpad.net/zope2/+bug/367393 . @@ -107,7 +107,7 @@ + - Added automatic inline migration for databases created with older Zope - versions. The `Versions` screen from the `Control_Panel` is now + versions. The ``Versions`` screen from the ``Control_Panel`` is now automatically removed on Zope startup. - Removed more unused code of the versions support feature including the @@ -136,12 +136,12 @@ - Updated to ZODB 3.9.0a12. -- Removed the `getPackages` wrapper from setup.py which would force all +- Removed the ``getPackages`` wrapper from setup.py which would force all versions to an exact requirement. This made it impossible to require newer versions of the dependencies. This kind of KGS information needs to be expressed in a different way. -- removed `extras_require` section from setup.py (this might possibly +- removed ``extras_require`` section from setup.py (this might possibly break legacy code). Bugs Fixed @@ -177,15 +177,15 @@ - Removed bridging code from Product.Five for PlacelessTranslationService and Localizer. Neither of the two is actually using this anymore. -- Removed the specification of `SOFTWARE_HOME` and `ZOPE_HOME` from the +- Removed the specification of ``SOFTWARE_HOME`` and ``ZOPE_HOME`` from the standard instance scripts. [hannosch] -- Made the specification of `SOFTWARE_HOME` and `ZOPE_HOME` optional. In - addition `INSTANCE_HOME` is no longer required to run the tests of a +- Made the specification of ``SOFTWARE_HOME`` and ``ZOPE_HOME`` optional. In + addition ``INSTANCE_HOME`` is no longer required to run the tests of a source checkout of Zope. -- Removed the `test` command from zopectl. The test.py script it was relying +- Removed the ``test`` command from zopectl. The test.py script it was relying on does no longer exist. - Updated to ZODB 3.9.0a11. ZODB-level version support has been @@ -216,7 +216,7 @@ mechanism. - The persistent product registry is not required for starting Zope - anymore. `enable-product-installation` can be set to off if you don't + anymore. ``enable-product-installation`` can be set to off if you don't rely on the functionality provided by the registry. - ZClasses have been deprecated for two major releases. They have been @@ -265,21 +265,22 @@ - OFS.ObjectManager now fully implements the zope.container.IContainer interface. For the last Zope2 releases it already claimed to implement the interface, but didn't actually full-fill the interface contract. This means - you can start using more commonly used Python idioms to access objects inside - object managers. Complete dictionary-like access and container methods - including iteration are now supported. For each class derived from - ObjectManager you can use for any instance om: `om.keys()`
[Zope-Checkins] SVN: Zope/branches/tseaver-zope.app_delenda_est/ No longer depend on ``zope.app.appsetup``.
Log message for revision 99913: No longer depend on ``zope.app.appsetup``. Use the event implementations from ``zope.processlifetime`` instead. Changed: U Zope/branches/tseaver-zope.app_delenda_est/doc/CHANGES.rst U Zope/branches/tseaver-zope.app_delenda_est/setup.py U Zope/branches/tseaver-zope.app_delenda_est/src/Zope2/App/startup.py U Zope/branches/tseaver-zope.app_delenda_est/src/Zope2/Startup/__init__.py U Zope/branches/tseaver-zope.app_delenda_est/versions.cfg -=- Modified: Zope/branches/tseaver-zope.app_delenda_est/doc/CHANGES.rst === --- Zope/branches/tseaver-zope.app_delenda_est/doc/CHANGES.rst 2009-05-13 19:40:18 UTC (rev 99912) +++ Zope/branches/tseaver-zope.app_delenda_est/doc/CHANGES.rst 2009-05-13 19:42:15 UTC (rev 99913) @@ -8,6 +8,12 @@ Trunk (unreleased) -- +Restructuring ++ + +- No longer depend on ``zope.app.appsetup``; use the event implementations + from ``zope.processlifetime`` instead. + Features Added ++ Modified: Zope/branches/tseaver-zope.app_delenda_est/setup.py === --- Zope/branches/tseaver-zope.app_delenda_est/setup.py 2009-05-13 19:40:18 UTC (rev 99912) +++ Zope/branches/tseaver-zope.app_delenda_est/setup.py 2009-05-13 19:42:15 UTC (rev 99913) @@ -19,7 +19,7 @@ EXTENSIONCLASS_INCLUDEDIRS = ['include', 'src'] params = dict(name='Zope2', -version='2.12.0b1', +version='2.12.0b2dev', url='http://www.zope.org', license='ZPL 2.1', description='Zope2 application server / web framework', @@ -128,6 +128,7 @@ 'zope.lifecycleevent', 'zope.location', 'zope.pagetemplate', + 'zope.processlifetime', 'zope.proxy', 'zope.publisher', 'zope.schema', Modified: Zope/branches/tseaver-zope.app_delenda_est/src/Zope2/App/startup.py === --- Zope/branches/tseaver-zope.app_delenda_est/src/Zope2/App/startup.py 2009-05-13 19:40:18 UTC (rev 99912) +++ Zope/branches/tseaver-zope.app_delenda_est/src/Zope2/App/startup.py 2009-05-13 19:42:15 UTC (rev 99913) @@ -39,7 +39,7 @@ import ZPublisher from zope.event import notify -from zope.app import appsetup +from zope.processlifetime import DatabaseOpened app = None startup_time = asctime() @@ -82,7 +82,7 @@ else: DB = ZODB.DB(m.Storage, databases=databases) -notify(appsetup.interfaces.DatabaseOpened(DB)) +notify(DatabaseOpened(DB)) Globals.BobobaseName = DB.getName() Modified: Zope/branches/tseaver-zope.app_delenda_est/src/Zope2/Startup/__init__.py === --- Zope/branches/tseaver-zope.app_delenda_est/src/Zope2/Startup/__init__.py 2009-05-13 19:40:18 UTC (rev 99912) +++ Zope/branches/tseaver-zope.app_delenda_est/src/Zope2/Startup/__init__.py 2009-05-13 19:42:15 UTC (rev 99913) @@ -11,27 +11,25 @@ # FOR A PARTICULAR PURPOSE. # ## - - Startup package. Responsible for startup configuration of Zope - + Startup package. Responsible for startup configuration of Zope. + import logging import os +from re import compile import sys import socket -from re import compile -from socket import gethostbyaddr -try: + +try: # XXX: YAGNI import twisted.internet.reactor _use_twisted = True except ImportError: _use_twisted = True - -import ZConfig +from ZConfig import ConfigurationError from ZConfig.components.logger import loghandler from zope.event import notify -from zope.app import appsetup +from zope.processlifetime import ProcessStarting logger = logging.getLogger(Zope) started = False @@ -73,7 +71,7 @@ def sendEvents(self): -notify(appsetup.interfaces.ProcessStarting()) +notify(ProcessStarting()) def prepare(self): self.setupInitialLogging() @@ -110,11 +108,11 @@ config = getConfiguration() import ZServer if config.twisted_servers and config.servers: -raise ZConfig.ConfigurationError( +raise ConfigurationError( You can't run both ZServer servers and twisted servers.) -if config.twisted_servers: +if config.twisted_servers: # XXX: YAGNI if not _use_twisted: -raise ZConfig.ConfigurationError( +raise ConfigurationError( You do not have twisted installed.) twisted.internet.reactor.run() # Storing the exit code in the ZServer even for twisted, @@ -183,7 +181,7 @@ try: import locale except: -raise ZConfig.ConfigurationError( +raise ConfigurationError(
[Zope-Checkins] SVN: Zope/branches/tseaver-zope.app_delenda_est/BORKED_DEPENDENCIES.rst Note borked dependencies.
Log message for revision 99918: Note borked dependencies. Changed: A Zope/branches/tseaver-zope.app_delenda_est/BORKED_DEPENDENCIES.rst -=- Added: Zope/branches/tseaver-zope.app_delenda_est/BORKED_DEPENDENCIES.rst === --- Zope/branches/tseaver-zope.app_delenda_est/BORKED_DEPENDENCIES.rst (rev 0) +++ Zope/branches/tseaver-zope.app_delenda_est/BORKED_DEPENDENCIES.rst 2009-05-13 20:41:24 UTC (rev 99918) @@ -0,0 +1,82 @@ +Zope2 depends on the following zope.app packages directly: + +- [X] zope.app.appsetup + * Zope2.Startup + * Zope.App.Startup + +- [_] zope.app.component + o Products.Five (meta.zcml) + +- [_] zope.app.container + o Products.Five.browser.adding + o Products.Five.browser.metaconfigure + o Products.Five.browser.doc/products/ViewsTutoria (configure.zcml) + +- [_] zope.app.form + o Products.Five.form.* + +- [_] zope.app.pagetemplate + o Products.PageTemplates.Expressions + o Products.Five.browser.pagetemplatefile + o Products.Five.browser.metaconfigure + +- [_] zope.app.publication + o ZPublisher.BaseRequest + o Products.Five.component + +- [_] zope.app.publisher + o ZPublisher.BaseRequest + o Products.Five.browser.* + o Products.Five.viewlet.metaconfigure + o Products.Five.form.metaconfigure + o Products.Five.fivedirectives + +- [_] zope.app.schema + o Products.Five + + +And has transitive dependencies on these packages: + +- [_] zope.app.applicationcontrol + o zope.traversing + o zope.app.publication + +- [_] zope.app.basicskin + o zope.app.form + +- [_] zope.app.debug + o zope.app.testing + +- [_] zope.app.dependable + o zope.container + o zope.app.testing + +- [_] zope.app.exception + o zope.app.publication + +- [_] zope.app.http + o zope.app.publication + +- [_] zope.app.interface + o zope.app.component + +- [_] zope.app.localpermission + o zope.app.security + +- [_] zope.app.security + o zope.viewlet + o zope.traversing + o zope.testbrowser + o zope.app.* + +- [_] zope.app.testing + o zope.viewlet + o zope.container + o zope.copypastemve + o zope.error + o zope.dublincore + o zope.formlib + o zope.traversing + o zope.testbrowser + o zope.site + o zope.app.* ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] SVN: Zope/branches/tseaver-zope.app_delenda_est/ Use ``IAdding`` interface from ``zope.browser``
Log message for revision 99936: Use ``IAdding`` interface from ``zope.browser`` (rather than ``zope.app.container``). Changed: U Zope/branches/tseaver-zope.app_delenda_est/doc/CHANGES.rst U Zope/branches/tseaver-zope.app_delenda_est/src/Products/Five/browser/adding.py U Zope/branches/tseaver-zope.app_delenda_est/src/Products/Five/doc/products/ViewsTutorial/configure.zcml U Zope/branches/tseaver-zope.app_delenda_est/src/Products/Five/form/metaconfigure.py U Zope/branches/tseaver-zope.app_delenda_est/versions.cfg -=- Modified: Zope/branches/tseaver-zope.app_delenda_est/doc/CHANGES.rst === --- Zope/branches/tseaver-zope.app_delenda_est/doc/CHANGES.rst 2009-05-13 21:35:46 UTC (rev 99935) +++ Zope/branches/tseaver-zope.app_delenda_est/doc/CHANGES.rst 2009-05-13 21:47:23 UTC (rev 99936) @@ -11,6 +11,9 @@ Restructuring + +- Use ``IAdding`` interface from ``zope.browser``, rather than + ``zope.app.container``. + - No longer depend on ``zope.app.appsetup``; use the event implementations from ``zope.processlifetime`` instead. Modified: Zope/branches/tseaver-zope.app_delenda_est/src/Products/Five/browser/adding.py === --- Zope/branches/tseaver-zope.app_delenda_est/src/Products/Five/browser/adding.py 2009-05-13 21:35:46 UTC (rev 99935) +++ Zope/branches/tseaver-zope.app_delenda_est/src/Products/Five/browser/adding.py 2009-05-13 21:47:23 UTC (rev 99936) @@ -42,7 +42,7 @@ from zope.exceptions.interfaces import UserError from zope.lifecycleevent import ObjectCreatedEvent -from zope.app.container.interfaces import IAdding +from zope.browser.interfaces import IAdding from zope.app.publisher.browser.menu import getMenu from zExceptions import BadRequest @@ -55,7 +55,7 @@ implements(IAdding, IPublishTraverse) def add(self, content): -See zope.app.container.interfaces.IAdding +See zope.browser.interfaces.IAdding container = self.context name = self.contentName @@ -90,7 +90,7 @@ contentName = None # usually set by Adding traverser def nextURL(self): -See zope.app.container.interfaces.IAdding +See zope.browser.interfaces.IAdding # XXX this is definitely not right for all or even most uses # of Five, but can be overridden by an AddView subclass, using # the class attribute of a zcml:addform directive Modified: Zope/branches/tseaver-zope.app_delenda_est/src/Products/Five/doc/products/ViewsTutorial/configure.zcml === --- Zope/branches/tseaver-zope.app_delenda_est/src/Products/Five/doc/products/ViewsTutorial/configure.zcml 2009-05-13 21:35:46 UTC (rev 99935) +++ Zope/branches/tseaver-zope.app_delenda_est/src/Products/Five/doc/products/ViewsTutorial/configure.zcml 2009-05-13 21:47:23 UTC (rev 99936) @@ -46,7 +46,7 @@ !-- .democontent.IDemoContent views -- browser:page - for=zope.app.container.interfaces.IAdding + for=zope.browser.interfaces.IAdding name=addDemoContent.html template=addDemoContent.pt class=.browser.DemoContentAddView Modified: Zope/branches/tseaver-zope.app_delenda_est/src/Products/Five/form/metaconfigure.py === --- Zope/branches/tseaver-zope.app_delenda_est/src/Products/Five/form/metaconfigure.py 2009-05-13 21:35:46 UTC (rev 99935) +++ Zope/branches/tseaver-zope.app_delenda_est/src/Products/Five/form/metaconfigure.py 2009-05-13 21:47:23 UTC (rev 99936) @@ -18,6 +18,7 @@ from App.class_init import InitializeClass from ExtensionClass import Base +from zope.browser.interfaces import IAdding import zope.component from zope.interface import Interface from zope.i18nmessageid import MessageFactory @@ -25,7 +26,6 @@ from zope.app.publisher.browser.menumeta import menuItemDirective from zope.app.form.browser.metaconfigure import BaseFormDirective -from zope.app.container.interfaces import IAdding from Products.Five.form import EditView, AddView from Products.Five.metaclass import makeClass Modified: Zope/branches/tseaver-zope.app_delenda_est/versions.cfg === --- Zope/branches/tseaver-zope.app_delenda_est/versions.cfg 2009-05-13 21:35:46 UTC (rev 99935) +++ Zope/branches/tseaver-zope.app_delenda_est/versions.cfg 2009-05-13 21:47:23 UTC (rev 99936) @@ -35,7 +35,6 @@ zope.app.cache = 3.5.0 zope.app.catalog = 3.8.0 zope.app.component = 3.7.0 -zope.app.container = 3.7.2 zope.app.content = 3.4.0 zope.app.dav = 3.5.0 zope.app.debug = 3.4.1 @@ -73,7 +72,7 @@ zope.app.zptpage = 3.5.0 zope.authentication = 3.7.0 zope.broken = 3.5.0 -zope.browser = 0.5.0 +zope.browser = 1.1 zope.cachedescriptors = 3.5.0 zope.catalog = 3.8.0