[Checkins] SVN: z3ext.controlpanel/trunk/s cleanup dependencies, remove install generation

Nikolay Kim fafhrd at datacom.kz
Mon Mar 9 11:49:22 EDT 2009


Log message for revision 97705:
  cleanup dependencies, remove install generation

Changed:
  U   z3ext.controlpanel/trunk/setup.py
  D   z3ext.controlpanel/trunk/src/z3ext/controlpanel/generations/install.py

-=-
Modified: z3ext.controlpanel/trunk/setup.py
===================================================================
--- z3ext.controlpanel/trunk/setup.py	2009-03-09 15:47:46 UTC (rev 97704)
+++ z3ext.controlpanel/trunk/setup.py	2009-03-09 15:49:22 UTC (rev 97705)
@@ -71,7 +71,6 @@
                           'zope.app.component',
                           'zope.app.security',
 			  'zope.app.container',
-                          'zc.copy',
                           'z3c.traverser',
                           'z3c.autoinclude',
                           'z3ext.layout',

Deleted: z3ext.controlpanel/trunk/src/z3ext/controlpanel/generations/install.py
===================================================================
--- z3ext.controlpanel/trunk/src/z3ext/controlpanel/generations/install.py	2009-03-09 15:47:46 UTC (rev 97704)
+++ z3ext.controlpanel/trunk/src/z3ext/controlpanel/generations/install.py	2009-03-09 15:49:22 UTC (rev 97705)
@@ -1,61 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2008 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$
-"""
-from zope import event
-from zc.copy import copy
-from zope.app.component.interfaces import ISite
-from zope.app.generations.utility import findObjectsProviding
-from zope.app.publication.zopepublication import ZopePublication
-from zope.lifecycleevent import ObjectCreatedEvent
-from z3ext.controlpanel.storage import ConfigletData, ConfigletDataStorage
-
-
-def evolve(context):
-    root = context.connection.root()[ZopePublication.root_name]
-
-    for site in findObjectsProviding(root, ISite):
-        ann = getattr(site, '__annotations__', None)
-        if ann is None:
-            continue
-
-        data = ann.get('z3ext.controlpanel.Settings')
-        if data is None:
-            continue
-
-        sm = site.getSiteManager()
-
-        storage = ConfigletDataStorage()
-        event.notify(ObjectCreatedEvent(storage))
-
-        if 'controlpanel' in sm:
-            del sm['controlpanel']
-
-        sm['controlpanel'] = storage
-
-        for name, cdata in data.items():
-            configlet = ConfigletData()
-            event.notify(ObjectCreatedEvent(storage))
-            storage[name] = configlet
-
-            for n, v in cdata.items():
-                if hasattr(v, '_p_jar'):
-                    if storage._p_jar is not v._p_jar:
-                        v = copy(v)
-
-                configlet[n] = v
-
-        del ann['z3ext.controlpanel.Settings']



More information about the Checkins mailing list