[Checkins] SVN: z3ext.skintool/tags/1.0.2/ tag for release

Nikolay Kim fafhrd at datacom.kz
Thu Aug 7 08:13:23 EDT 2008


Log message for revision 89495:
  tag for release

Changed:
  A   z3ext.skintool/tags/1.0.2/
  D   z3ext.skintool/tags/1.0.2/CHANGES.txt
  A   z3ext.skintool/tags/1.0.2/CHANGES.txt
  U   z3ext.skintool/tags/1.0.2/setup.py
  D   z3ext.skintool/tags/1.0.2/src/z3ext/skintool/interfaces.py
  A   z3ext.skintool/tags/1.0.2/src/z3ext/skintool/interfaces.py
  D   z3ext.skintool/tags/1.0.2/src/z3ext/skintool/subscribers.py
  A   z3ext.skintool/tags/1.0.2/src/z3ext/skintool/subscribers.py

-=-
Copied: z3ext.skintool/tags/1.0.2 (from rev 89483, z3ext.skintool/trunk)

Deleted: z3ext.skintool/tags/1.0.2/CHANGES.txt
===================================================================
--- z3ext.skintool/trunk/CHANGES.txt	2008-08-07 02:06:05 UTC (rev 89483)
+++ z3ext.skintool/tags/1.0.2/CHANGES.txt	2008-08-07 12:13:23 UTC (rev 89495)
@@ -1,45 +0,0 @@
-=======
-CHANGES
-=======
-
-1.0.1 (2008-05-16)
-------------------
-
-- Replace 'autoinclude' with 'includeDependendcies'
-
-
-1.0.0 (2008-03-28)
-------------------
-
-- Code cleanup
-
-- Added tests
-
-- Code moved to svn.zope.org
-
-
-0.13 (2008-02-28)
-----------------
-
-- Use z3c.autoinclude
-
-- Do not generate InterfaceClass object, just apply list of layers
-
-
-0.12 (2008-02-08)
------------------
-
-- Code cleanup
-
-
-0.11 (2008-02-06)
-------------------
-
-- Added ISkinable marker interface.
-  Now object should implement ISkinable implicitly to support skintool
-
-
-0.10 (2008-02-01)
-------------------
-
-- Initial release.

Copied: z3ext.skintool/tags/1.0.2/CHANGES.txt (from rev 89494, z3ext.skintool/trunk/CHANGES.txt)
===================================================================
--- z3ext.skintool/tags/1.0.2/CHANGES.txt	                        (rev 0)
+++ z3ext.skintool/tags/1.0.2/CHANGES.txt	2008-08-07 12:13:23 UTC (rev 89495)
@@ -0,0 +1,51 @@
+=======
+CHANGES
+=======
+
+1.0.2 (2008-08-07)
+------------------
+
+- Added INoSkinSwitching for skin that does not allow skin switching
+
+
+1.0.1 (2008-05-16)
+------------------
+
+- Replace 'autoinclude' with 'includeDependendcies'
+
+
+1.0.0 (2008-03-28)
+------------------
+
+- Code cleanup
+
+- Added tests
+
+- Code moved to svn.zope.org
+
+
+0.13 (2008-02-28)
+----------------
+
+- Use z3c.autoinclude
+
+- Do not generate InterfaceClass object, just apply list of layers
+
+
+0.12 (2008-02-08)
+-----------------
+
+- Code cleanup
+
+
+0.11 (2008-02-06)
+------------------
+
+- Added ISkinable marker interface.
+  Now object should implement ISkinable implicitly to support skintool
+
+
+0.10 (2008-02-01)
+------------------
+
+- Initial release.

Modified: z3ext.skintool/tags/1.0.2/setup.py
===================================================================
--- z3ext.skintool/trunk/setup.py	2008-08-07 02:06:05 UTC (rev 89483)
+++ z3ext.skintool/tags/1.0.2/setup.py	2008-08-07 12:13:23 UTC (rev 89495)
@@ -21,7 +21,7 @@
 def read(*rnames):
     return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
 
-version = '1.0.2dev'
+version = '1.0.2'
 
 
 setup(name='z3ext.skintool',

Deleted: z3ext.skintool/tags/1.0.2/src/z3ext/skintool/interfaces.py
===================================================================
--- z3ext.skintool/trunk/src/z3ext/skintool/interfaces.py	2008-08-07 02:06:05 UTC (rev 89483)
+++ z3ext.skintool/tags/1.0.2/src/z3ext/skintool/interfaces.py	2008-08-07 12:13:23 UTC (rev 89495)
@@ -1,49 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2007 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.
-#
-##############################################################################
-""" z3ext.skintool interfaces
-
-$Id$
-"""
-from zope import schema, interface
-from zope.i18nmessageid import MessageFactory
-
-_ = MessageFactory('z3ext')
-
-
-class ISkinable(interface.Interface):
-    """ marker interface for skinable objects """
-
-
-class IDefaultLayer(interface.interfaces.IInterface):
-    """ default layer (automaticlly added to skin) """
-
-
-class IDefaultLayers(interface.Interface):
-    """ adapter that provide default layers """
-
-    layers = interface.Attribute('tuple of ILayer interfaces')
-
-
-class ISkinTool(interface.Interface):
-    """ skin tool, allow generate skin on the fly """
-
-    user_layers = schema.List(
-        title = _(u'Layers'),
-        description = _(u'Select skin layers.'),
-        value_type = schema.Choice(vocabulary = "z3ext skin layers"),
-        default = [],
-        required = False)
-
-    def generate():
-        """ generate skin interface """

Copied: z3ext.skintool/tags/1.0.2/src/z3ext/skintool/interfaces.py (from rev 89494, z3ext.skintool/trunk/src/z3ext/skintool/interfaces.py)
===================================================================
--- z3ext.skintool/tags/1.0.2/src/z3ext/skintool/interfaces.py	                        (rev 0)
+++ z3ext.skintool/tags/1.0.2/src/z3ext/skintool/interfaces.py	2008-08-07 12:13:23 UTC (rev 89495)
@@ -0,0 +1,53 @@
+##############################################################################
+#
+# Copyright (c) 2007 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.
+#
+##############################################################################
+""" z3ext.skintool interfaces
+
+$Id$
+"""
+from zope import schema, interface
+from zope.i18nmessageid import MessageFactory
+
+_ = MessageFactory('z3ext')
+
+
+class ISkinable(interface.Interface):
+    """ marker interface for skinable objects """
+
+
+class INoSkinSwitching(interface.Interface):
+    """ if default skin provide this interface, do not switch skin """
+
+
+class IDefaultLayer(interface.interfaces.IInterface):
+    """ default layer (automaticlly added to skin) """
+
+
+class IDefaultLayers(interface.Interface):
+    """ adapter that provide default layers """
+
+    layers = interface.Attribute('tuple of ILayer interfaces')
+
+
+class ISkinTool(interface.Interface):
+    """ skin tool, allow generate skin on the fly """
+
+    user_layers = schema.List(
+        title = _(u'Layers'),
+        description = _(u'Select skin layers.'),
+        value_type = schema.Choice(vocabulary = "z3ext skin layers"),
+        default = [],
+        required = False)
+
+    def generate():
+        """ generate skin interface """

Deleted: z3ext.skintool/tags/1.0.2/src/z3ext/skintool/subscribers.py
===================================================================
--- z3ext.skintool/trunk/src/z3ext/skintool/subscribers.py	2008-08-07 02:06:05 UTC (rev 89483)
+++ z3ext.skintool/tags/1.0.2/src/z3ext/skintool/subscribers.py	2008-08-07 12:13:23 UTC (rev 89495)
@@ -1,44 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2007 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 component
-from zope.proxy import removeAllProxies
-from zope.component import getUtility
-from zope.interface import directlyProvides
-from zope.app.component.interfaces import ISite
-from zope.app.publication.interfaces import IBeforeTraverseEvent
-
-from interfaces import ISkinTool, ISkinable
-
-
- at component.adapter(ISite, IBeforeTraverseEvent)
-def threadServiceSubscriber(site, event,
-                            ISkinable = ISkinable,
-                            removeAllProxies=removeAllProxies,
-                            directlyProvides=directlyProvides):
-    site = removeAllProxies(site)
-
-    if not ISkinable.providedBy(site):
-        return
-
-    skin = getattr(site, '_v_skin', None)
-    if skin is None:
-        skin = getUtility(ISkinTool).generate()
-        site._v_skin = skin
-
-    if skin:
-        directlyProvides(event.request, *skin)

Copied: z3ext.skintool/tags/1.0.2/src/z3ext/skintool/subscribers.py (from rev 89494, z3ext.skintool/trunk/src/z3ext/skintool/subscribers.py)
===================================================================
--- z3ext.skintool/tags/1.0.2/src/z3ext/skintool/subscribers.py	                        (rev 0)
+++ z3ext.skintool/tags/1.0.2/src/z3ext/skintool/subscribers.py	2008-08-07 12:13:23 UTC (rev 89495)
@@ -0,0 +1,48 @@
+##############################################################################
+#
+# Copyright (c) 2007 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 component
+from zope.proxy import removeAllProxies
+from zope.component import getUtility
+from zope.interface import directlyProvides
+from zope.app.component.interfaces import ISite
+from zope.app.publication.interfaces import IBeforeTraverseEvent
+
+from interfaces import ISkinTool, ISkinable, INoSkinSwitching
+
+
+ at component.adapter(ISite, IBeforeTraverseEvent)
+def threadServiceSubscriber(site, event,
+                            ISkinable = ISkinable,
+                            removeAllProxies=removeAllProxies,
+                            directlyProvides=directlyProvides):
+
+    if INoSkinSwitching.providedBy(event.request):
+        return
+    
+    site = removeAllProxies(site)
+
+    if not ISkinable.providedBy(site):
+        return
+
+    skin = getattr(site, '_v_skin', None)
+    if skin is None:
+        skin = getUtility(ISkinTool).generate()
+        site._v_skin = skin
+
+    if skin:
+        directlyProvides(event.request, *skin)



More information about the Checkins mailing list