[Checkins] SVN: z3ext.controlpanel/tags/1.3.1/ release tag

Nikolay Kim fafhrd at datacom.kz
Tue Oct 7 12:15:09 EDT 2008


Log message for revision 91870:
  release tag

Changed:
  A   z3ext.controlpanel/tags/1.3.1/
  D   z3ext.controlpanel/tags/1.3.1/CHANGES.txt
  A   z3ext.controlpanel/tags/1.3.1/CHANGES.txt
  U   z3ext.controlpanel/tags/1.3.1/setup.py
  D   z3ext.controlpanel/tags/1.3.1/src/z3ext/controlpanel/generations/install.py
  A   z3ext.controlpanel/tags/1.3.1/src/z3ext/controlpanel/generations/install.py
  D   z3ext.controlpanel/tags/1.3.1/src/z3ext/controlpanel/site.txt
  A   z3ext.controlpanel/tags/1.3.1/src/z3ext/controlpanel/site.txt

-=-
Copied: z3ext.controlpanel/tags/1.3.1 (from rev 91853, z3ext.controlpanel/trunk)

Deleted: z3ext.controlpanel/tags/1.3.1/CHANGES.txt
===================================================================
--- z3ext.controlpanel/trunk/CHANGES.txt	2008-10-07 15:26:40 UTC (rev 91853)
+++ z3ext.controlpanel/tags/1.3.1/CHANGES.txt	2008-10-07 16:15:08 UTC (rev 91870)
@@ -1,116 +0,0 @@
-=======
-CHANGES
-=======
-
-1.3.0 (2008-10-07)
-------------------
-
-- Added default stylesheets
-
-- Configlet data storage api has been refactored.
-
-- Use z3ext.controlpanel i18n domain
-
-
-1.2.6 (2008-08-28)
-------------------
-
-- Fixed data storage copy
-
-
-1.2.5 (2008-08-28)
-------------------
-
-- Remove wrong html tag for category view
-
-- Fix configlet storage name
-
-- Added copier for data storage
-
-
-1.2.4 (2008-05-26)
-------------------
-
-- Fixed configlet subcategory + z3c.baseregistry bug
-
-
-1.2.3 (2008-05-14)
-------------------
-
-- Replace 'autoinclude' with 'includeDependendcies'
-
-- Tests updated
-
-
-1.2.2 (2008-04-08)
-------------------
-
-- Fix UI navigation
-
-
-1.2.1 (2008-03-28)
-------------------
-
-- Removed 'principals' configlet category
-
-
-1.2.0 (2008-03-21)
-------------------
-
-- Use z3ext.pagelet directive for browser views
-
-- Added i18n
-
-- Moved to svn.zope.org
-
-
-1.1.7 (2008-03-18)
-------------------
-
-- Added functional tests
-
-
-1.1.6 (2008-02-28)
-------------------
-
-- Use z3c.autoinclude
-
-
-1.1.5 (2008-02-22)
-------------------
-
-- Added buildout.cfg for testing
-
-- Added viewlet manager for configlet navigation
-
-
-1.1.4 (2008-02-20)
-------------------
-
-- Use z3ext.layoutform
-
-
-1.1.3 (2008-02-0?)
-------------------
-
-- Added 'UI' configuration category
-
-
-1.1.2 (2008-02-04)
-------------------
-
-- Fixed problem with generated class and persistence
-
-- Remove all <grant/> directives
-
-
-1.1.0 (2008-01-31)
-------------------
-
-- Use z3ext.layout for rendering
-
-
-1.0.0 (2007-26-07)
-------------------
-
-- Initial release

Copied: z3ext.controlpanel/tags/1.3.1/CHANGES.txt (from rev 91869, z3ext.controlpanel/trunk/CHANGES.txt)
===================================================================
--- z3ext.controlpanel/tags/1.3.1/CHANGES.txt	                        (rev 0)
+++ z3ext.controlpanel/tags/1.3.1/CHANGES.txt	2008-10-07 16:15:08 UTC (rev 91870)
@@ -0,0 +1,122 @@
+=======
+CHANGES
+=======
+
+1.3.1 (2008-10-07)
+------------------
+
+- Fixed migration script for multiple databases
+
+
+1.3.0 (2008-10-07)
+------------------
+
+- Added default stylesheets
+
+- Configlet data storage api has been refactored.
+
+- Use z3ext.controlpanel i18n domain
+
+
+1.2.6 (2008-08-28)
+------------------
+
+- Fixed data storage copy
+
+
+1.2.5 (2008-08-28)
+------------------
+
+- Remove wrong html tag for category view
+
+- Fix configlet storage name
+
+- Added copier for data storage
+
+
+1.2.4 (2008-05-26)
+------------------
+
+- Fixed configlet subcategory + z3c.baseregistry bug
+
+
+1.2.3 (2008-05-14)
+------------------
+
+- Replace 'autoinclude' with 'includeDependendcies'
+
+- Tests updated
+
+
+1.2.2 (2008-04-08)
+------------------
+
+- Fix UI navigation
+
+
+1.2.1 (2008-03-28)
+------------------
+
+- Removed 'principals' configlet category
+
+
+1.2.0 (2008-03-21)
+------------------
+
+- Use z3ext.pagelet directive for browser views
+
+- Added i18n
+
+- Moved to svn.zope.org
+
+
+1.1.7 (2008-03-18)
+------------------
+
+- Added functional tests
+
+
+1.1.6 (2008-02-28)
+------------------
+
+- Use z3c.autoinclude
+
+
+1.1.5 (2008-02-22)
+------------------
+
+- Added buildout.cfg for testing
+
+- Added viewlet manager for configlet navigation
+
+
+1.1.4 (2008-02-20)
+------------------
+
+- Use z3ext.layoutform
+
+
+1.1.3 (2008-02-0?)
+------------------
+
+- Added 'UI' configuration category
+
+
+1.1.2 (2008-02-04)
+------------------
+
+- Fixed problem with generated class and persistence
+
+- Remove all <grant/> directives
+
+
+1.1.0 (2008-01-31)
+------------------
+
+- Use z3ext.layout for rendering
+
+
+1.0.0 (2007-26-07)
+------------------
+
+- Initial release

Modified: z3ext.controlpanel/tags/1.3.1/setup.py
===================================================================
--- z3ext.controlpanel/trunk/setup.py	2008-10-07 15:26:40 UTC (rev 91853)
+++ z3ext.controlpanel/tags/1.3.1/setup.py	2008-10-07 16:15:08 UTC (rev 91870)
@@ -21,7 +21,7 @@
 def read(*rnames):
     return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
 
-version='1.3.1dev'
+version='1.3.1'
 
 
 setup(name = 'z3ext.controlpanel',

Deleted: z3ext.controlpanel/tags/1.3.1/src/z3ext/controlpanel/generations/install.py
===================================================================
--- z3ext.controlpanel/trunk/src/z3ext/controlpanel/generations/install.py	2008-10-07 15:26:40 UTC (rev 91853)
+++ z3ext.controlpanel/tags/1.3.1/src/z3ext/controlpanel/generations/install.py	2008-10-07 16:15:08 UTC (rev 91870)
@@ -1,58 +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 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():
-                configlet[n] = v
-
-            print configlet
-
-        del ann['z3ext.controlpanel.Settings']

Copied: z3ext.controlpanel/tags/1.3.1/src/z3ext/controlpanel/generations/install.py (from rev 91869, z3ext.controlpanel/trunk/src/z3ext/controlpanel/generations/install.py)
===================================================================
--- z3ext.controlpanel/tags/1.3.1/src/z3ext/controlpanel/generations/install.py	                        (rev 0)
+++ z3ext.controlpanel/tags/1.3.1/src/z3ext/controlpanel/generations/install.py	2008-10-07 16:15:08 UTC (rev 91870)
@@ -0,0 +1,60 @@
+##############################################################################
+#
+# 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 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']

Deleted: z3ext.controlpanel/tags/1.3.1/src/z3ext/controlpanel/site.txt
===================================================================
--- z3ext.controlpanel/trunk/src/z3ext/controlpanel/site.txt	2008-10-07 15:26:40 UTC (rev 91853)
+++ z3ext.controlpanel/tags/1.3.1/src/z3ext/controlpanel/site.txt	2008-10-07 16:15:08 UTC (rev 91870)
@@ -1,57 +0,0 @@
-==============
-Site copy/move
-==============
-
-  >>> from zope import component, interface
-  >>> from zope.app.folder.folder import Folder
-  >>> from zope.app.component.site import LocalSiteManager
-  >>> from zope.component.eventtesting import getEvents, clearEvents
-  >>> from zope.app.component.hooks import getSite, setSite
-  >>> from z3ext.controlpanel.interfaces import IConfiglet
-
-  >>> root = getSite()
-
-  >>> site = Folder()
-
-  >>> root['site'] = site
-  >>> root['subfolder'] = Folder()
-
-  >>> sm = LocalSiteManager(site)
-  >>> site.setSiteManager(sm)
-
-  >>> class IMyUtility(interface.Interface):
-  ...     pass
-
-
-Register persistent utility
-
-  >>> setSite(site)
-
-  >>> configlet = component.getUtility(IConfiglet)
-  >>> configlet, configlet.data
-
-  >>> myutility = Folder()
-  >>> interface.directlyProvides(myutility, IMyUtility)
-
-  >>> configlet.data['myutility'] = Folder()
-  >>> sm.registerUtility(myutility, IMyUtility, 'my')
-
-  >>> sm.getUtility(IMyUtility, name='my') is myutility
-  True
-
-Copy site
-
-  >>> clearEvents()
-
-  >>> from zope.copypastemove.interfaces import IObjectCopier
-  >>> copier = IObjectCopier(root['site'])
-  >>> copier.copyTo(root['subfolder'])
-  u'site'
-
-  >>> newsite = root['subfolder']['site']
-  >>> newsm = newsite.getSiteManager()
-
-  >>> newsm.getUtility(IMyUtility, name='my') is myutility
-  True
-
-getEvents()

Copied: z3ext.controlpanel/tags/1.3.1/src/z3ext/controlpanel/site.txt (from rev 91869, z3ext.controlpanel/trunk/src/z3ext/controlpanel/site.txt)
===================================================================
--- z3ext.controlpanel/tags/1.3.1/src/z3ext/controlpanel/site.txt	                        (rev 0)
+++ z3ext.controlpanel/tags/1.3.1/src/z3ext/controlpanel/site.txt	2008-10-07 16:15:08 UTC (rev 91870)
@@ -0,0 +1,56 @@
+==============
+Site copy/move
+==============
+
+  >>> from zope import component, interface
+  >>> from zope.app.folder.folder import Folder
+  >>> from zope.app.component.site import LocalSiteManager
+  >>> from zope.component.eventtesting import getEvents, clearEvents
+  >>> from zope.app.component.hooks import getSite, setSite
+  >>> from z3ext.controlpanel.interfaces import IConfiglet
+
+  >>> root = getSite()
+
+  >>> site = Folder()
+
+  >>> root['site'] = site
+  >>> root['subfolder'] = Folder()
+
+  >>> sm = LocalSiteManager(site)
+  >>> site.setSiteManager(sm)
+
+  >>> class IMyUtility(interface.Interface):
+  ...     pass
+
+
+Register persistent utility
+
+  >>> setSite(site)
+
+  >>> configlet = component.getUtility(IConfiglet)
+
+  >>> myutility = Folder()
+  >>> interface.directlyProvides(myutility, IMyUtility)
+
+  >>> configlet.data['myutility'] = Folder()
+  >>> sm.registerUtility(myutility, IMyUtility, 'my')
+
+  >>> sm.getUtility(IMyUtility, name='my') is myutility
+  True
+
+Copy site
+
+  >>> clearEvents()
+
+  >>> from zope.copypastemove.interfaces import IObjectCopier
+  >>> copier = IObjectCopier(root['site'])
+  >>> copier.copyTo(root['subfolder'])
+  u'site'
+
+  >>> newsite = root['subfolder']['site']
+  >>> newsm = newsite.getSiteManager()
+
+  >>> newsm.getUtility(IMyUtility, name='my') is myutility
+  True
+
+getEvents()



More information about the Checkins mailing list