[Checkins] SVN: z3ext.skintool/tags/1.1.2/ realeas tag

Nikolay Kim fafhrd at datacom.kz
Sun Jan 25 15:00:47 EST 2009


Log message for revision 95011:
  realeas tag

Changed:
  A   z3ext.skintool/tags/1.1.2/
  D   z3ext.skintool/tags/1.1.2/CHANGES.txt
  A   z3ext.skintool/tags/1.1.2/CHANGES.txt
  D   z3ext.skintool/tags/1.1.2/setup.py
  A   z3ext.skintool/tags/1.1.2/setup.py
  D   z3ext.skintool/tags/1.1.2/src/z3ext/skintool/configure.zcml
  A   z3ext.skintool/tags/1.1.2/src/z3ext/skintool/configure.zcml
  D   z3ext.skintool/tags/1.1.2/src/z3ext/skintool/interfaces.py
  A   z3ext.skintool/tags/1.1.2/src/z3ext/skintool/interfaces.py
  D   z3ext.skintool/tags/1.1.2/src/z3ext/skintool/vocabulary.py
  A   z3ext.skintool/tags/1.1.2/src/z3ext/skintool/vocabulary.py

-=-
Deleted: z3ext.skintool/tags/1.1.2/CHANGES.txt
===================================================================
--- z3ext.skintool/trunk/CHANGES.txt	2009-01-24 11:01:51 UTC (rev 94972)
+++ z3ext.skintool/tags/1.1.2/CHANGES.txt	2009-01-25 20:00:47 UTC (rev 95011)
@@ -1,67 +0,0 @@
-=======
-CHANGES
-=======
-
-1.1.1 (2008-12-03)
-------------------
-
-- Do not use _v_skin attribute
-
-
-1.1.0 (2008-11-21)
-------------------
-
-- Added z3ext:skin directive
-
-- API refactored
-
-- Added translations: nl, ru
-
-
-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.

Copied: z3ext.skintool/tags/1.1.2/CHANGES.txt (from rev 95010, z3ext.skintool/trunk/CHANGES.txt)
===================================================================
--- z3ext.skintool/tags/1.1.2/CHANGES.txt	                        (rev 0)
+++ z3ext.skintool/tags/1.1.2/CHANGES.txt	2009-01-25 20:00:47 UTC (rev 95011)
@@ -0,0 +1,73 @@
+=======
+CHANGES
+=======
+
+1.1.2 (2009-01-26)
+------------------
+
+- Use custom fields for schema
+
+
+1.1.1 (2008-12-03)
+------------------
+
+- Do not use _v_skin attribute
+
+
+1.1.0 (2008-11-21)
+------------------
+
+- Added z3ext:skin directive
+
+- API refactored
+
+- Added translations: nl, ru
+
+
+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.

Deleted: z3ext.skintool/tags/1.1.2/setup.py
===================================================================
--- z3ext.skintool/trunk/setup.py	2009-01-24 11:01:51 UTC (rev 94972)
+++ z3ext.skintool/tags/1.1.2/setup.py	2009-01-25 20:00:47 UTC (rev 95011)
@@ -1,76 +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.
-#
-##############################################################################
-"""Setup for z3ext.skintool package
-
-$Id$
-"""
-import sys, os
-from setuptools import setup, find_packages
-
-def read(*rnames):
-    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
-
-version = '1.1.2dev'
-
-
-setup(name='z3ext.skintool',
-      version=version,
-      description="Tool for merging skin layers at runtime",
-      long_description=(
-          'Detailed Documentation\n' +
-          '======================\n'
-          + '\n\n' +
-          read('src', 'z3ext', 'skintool', 'README.txt')
-          + '\n\n' +
-          read('CHANGES.txt')
-          ),
-      classifiers=[
-        'Development Status :: 5 - Production/Stable',
-        'Environment :: Web Environment',
-        'Intended Audience :: Developers',
-        'License :: OSI Approved :: Zope Public License',
-        'Programming Language :: Python',
-        'Natural Language :: English',
-        'Operating System :: OS Independent',
-        'Topic :: Internet :: WWW/HTTP',
-        'Framework :: Zope3'],
-      author='Nikolay Kim',
-      author_email='fafhrd91 at gmail.com',
-      url='http://z3ext.net/',
-      license='ZPL 2.1',
-      packages=find_packages('src'),
-      package_dir = {'':'src'},
-      namespace_packages=['z3ext'],
-      install_requires = ['setuptools',
-                          'zope.schema',
-			  'zope.proxy',
-                          'zope.component',
-                          'zope.interface',
-			  'zope.security',
-			  'zope.configuration',
-			  'zope.lifecycleevent',
-			  'zope.app.intid',
-                          'zope.app.component',
-			  'zope.app.publication',
-                          'zope.i18nmessageid',
-                          'zope.i18n',
-			  'z3c.autoinclude',
-			  'z3ext.controlpanel',
-                          ],
-      extras_require = dict(test=['zope.app.testing',
-                                  'zope.testing',
-                                  ]),
-      include_package_data = True,
-      zip_safe = False
-      )

Copied: z3ext.skintool/tags/1.1.2/setup.py (from rev 95010, z3ext.skintool/trunk/setup.py)
===================================================================
--- z3ext.skintool/tags/1.1.2/setup.py	                        (rev 0)
+++ z3ext.skintool/tags/1.1.2/setup.py	2009-01-25 20:00:47 UTC (rev 95011)
@@ -0,0 +1,78 @@
+##############################################################################
+#
+# 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.
+#
+##############################################################################
+"""Setup for z3ext.skintool package
+
+$Id$
+"""
+import sys, os
+from setuptools import setup, find_packages
+
+def read(*rnames):
+    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
+
+version = '1.1.2'
+
+
+setup(name='z3ext.skintool',
+      version=version,
+      description="Tool for merging skin layers at runtime",
+      long_description=(
+          'Detailed Documentation\n' +
+          '======================\n'
+          + '\n\n' +
+          read('src', 'z3ext', 'skintool', 'README.txt')
+          + '\n\n' +
+          read('CHANGES.txt')
+          ),
+      classifiers=[
+        'Development Status :: 5 - Production/Stable',
+        'Environment :: Web Environment',
+        'Intended Audience :: Developers',
+        'License :: OSI Approved :: Zope Public License',
+        'Programming Language :: Python',
+        'Natural Language :: English',
+        'Operating System :: OS Independent',
+        'Topic :: Internet :: WWW/HTTP',
+        'Framework :: Zope3'],
+      author='Nikolay Kim',
+      author_email='fafhrd91 at gmail.com',
+      url='http://z3ext.net/',
+      license='ZPL 2.1',
+      packages=find_packages('src'),
+      package_dir = {'':'src'},
+      namespace_packages=['z3ext'],
+      install_requires = ['setuptools',
+                          'zope.schema',
+			  'zope.proxy',
+                          'zope.component',
+                          'zope.interface',
+			  'zope.security',
+			  'zope.configuration',
+			  'zope.lifecycleevent',
+			  'zope.app.intid',
+                          'zope.app.component',
+			  'zope.app.publication',
+                          'zope.i18nmessageid',
+                          'zope.i18n',
+			  'z3c.autoinclude',
+			  'z3ext.controlpanel',
+			  'z3ext.widget.radio',
+			  'z3ext.widget.checkbox',
+                          ],
+      extras_require = dict(test=['zope.app.testing',
+                                  'zope.testing',
+                                  ]),
+      include_package_data = True,
+      zip_safe = False
+      )

Deleted: z3ext.skintool/tags/1.1.2/src/z3ext/skintool/configure.zcml
===================================================================
--- z3ext.skintool/trunk/src/z3ext/skintool/configure.zcml	2009-01-24 11:01:51 UTC (rev 94972)
+++ z3ext.skintool/tags/1.1.2/src/z3ext/skintool/configure.zcml	2009-01-25 20:00:47 UTC (rev 95011)
@@ -1,46 +0,0 @@
-<configure 
-   xmlns="http://namespaces.zope.org/zope"
-   xmlns:i18n="http://namespaces.zope.org/i18n"
-   xmlns:z3ext="http://namespaces.zope.org/z3ext"
-   i18n_domain="z3ext.skintool">
-
-  <includeDependencies package="z3ext.skintool" />
-
-  <!-- set default skin -->
-  <subscriber handler=".subscribers.threadServiceSubscriber" />
-
-  <!-- layers changed -->
-  <subscriber handler=".tool.skinToolModified" />
-
-  <utility
-     name="z3ext skins"
-     factory=".vocabulary.SkinsVocabulary" />
-
-  <utility
-     name="z3ext layers"
-     factory=".vocabulary.LayersVocabulary" />
-
-  <z3ext:configlet
-     name="ui.portalskin"
-     title="Portal skin"
-     description="Portal skin configuration."
-     class=".tool.SkinTool"
-     schema=".interfaces.ISkinTool" />
-
-  <z3ext:pagelet
-     name="index.html"
-     for=".interfaces.ISkinTool"
-     template="configlet.pt"
-     class=".configlet.SkintoolEditForm"
-     permission="z3ext.Configure" />
-
-  <!-- translations -->
-  <i18n:registerTranslations directory="locales"/>
-
-  <!-- generations -->
-  <utility
-     name="z3ext.skintool"
-     provides="zope.app.generations.interfaces.ISchemaManager"
-     component=".generations.schemaManager" />
-
-</configure>

Copied: z3ext.skintool/tags/1.1.2/src/z3ext/skintool/configure.zcml (from rev 95010, z3ext.skintool/trunk/src/z3ext/skintool/configure.zcml)
===================================================================
--- z3ext.skintool/tags/1.1.2/src/z3ext/skintool/configure.zcml	                        (rev 0)
+++ z3ext.skintool/tags/1.1.2/src/z3ext/skintool/configure.zcml	2009-01-25 20:00:47 UTC (rev 95011)
@@ -0,0 +1,39 @@
+<configure 
+   xmlns="http://namespaces.zope.org/zope"
+   xmlns:i18n="http://namespaces.zope.org/i18n"
+   xmlns:z3ext="http://namespaces.zope.org/z3ext"
+   i18n_domain="z3ext.skintool">
+
+  <includeDependencies package="z3ext.skintool" />
+
+  <!-- set default skin -->
+  <subscriber handler=".subscribers.threadServiceSubscriber" />
+
+  <!-- layers changed -->
+  <subscriber handler=".tool.skinToolModified" />
+
+  <utility
+     name="z3ext skins"
+     factory=".vocabulary.SkinsVocabulary" />
+
+  <utility
+     name="z3ext layers"
+     factory=".vocabulary.LayersVocabulary" />
+
+  <z3ext:configlet
+     name="ui.portalskin"
+     title="Portal skin"
+     description="Portal skin configuration."
+     class=".tool.SkinTool"
+     schema=".interfaces.ISkinTool" />
+
+  <!-- translations -->
+  <i18n:registerTranslations directory="locales"/>
+
+  <!-- generations -->
+  <utility
+     name="z3ext.skintool"
+     provides="zope.app.generations.interfaces.ISchemaManager"
+     component=".generations.schemaManager" />
+
+</configure>

Deleted: z3ext.skintool/tags/1.1.2/src/z3ext/skintool/interfaces.py
===================================================================
--- z3ext.skintool/trunk/src/z3ext/skintool/interfaces.py	2009-01-24 11:01:51 UTC (rev 94972)
+++ z3ext.skintool/tags/1.1.2/src/z3ext/skintool/interfaces.py	2009-01-25 20:00:47 UTC (rev 95011)
@@ -1,59 +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.skintool')
-
-
-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 """
-
-    skin = schema.Choice(
-        title = _('Skin'),
-        description = _(u'Select portal skin.'),
-        vocabulary = "z3ext skins",
-        required = False)
-
-    layers = schema.List(
-        title = _(u'Layers'),
-        description = _(u'Select skin layers.'),
-        value_type = schema.Choice(vocabulary = "z3ext layers"),
-        default = [],
-        required = False)
-
-    def generate():
-        """ generate skin interface """

Copied: z3ext.skintool/tags/1.1.2/src/z3ext/skintool/interfaces.py (from rev 95010, z3ext.skintool/trunk/src/z3ext/skintool/interfaces.py)
===================================================================
--- z3ext.skintool/tags/1.1.2/src/z3ext/skintool/interfaces.py	                        (rev 0)
+++ z3ext.skintool/tags/1.1.2/src/z3ext/skintool/interfaces.py	2009-01-25 20:00:47 UTC (rev 95011)
@@ -0,0 +1,61 @@
+##############################################################################
+#
+# 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
+from z3ext.widget.radio.field import RadioChoice
+from z3ext.widget.checkbox.field import CheckboxList
+
+_ = MessageFactory('z3ext.skintool')
+
+
+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 """
+
+    skin = RadioChoice(
+        title = _('Skin'),
+        description = _(u'Select portal skin.'),
+        vocabulary = "z3ext skins",
+        required = False)
+
+    layers = CheckboxList(
+        title = _(u'Layers'),
+        description = _(u'Select skin layers.'),
+        vocabulary = "z3ext layers",
+        default = [],
+        required = False)
+
+    def generate():
+        """ generate skin interface """

Deleted: z3ext.skintool/tags/1.1.2/src/z3ext/skintool/vocabulary.py
===================================================================
--- z3ext.skintool/trunk/src/z3ext/skintool/vocabulary.py	2009-01-24 11:01:51 UTC (rev 94972)
+++ z3ext.skintool/tags/1.1.2/src/z3ext/skintool/vocabulary.py	2009-01-25 20:00:47 UTC (rev 95011)
@@ -1,57 +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 interface
-from zope.schema.interfaces import IVocabularyFactory
-from zope.schema.vocabulary import SimpleTerm, SimpleVocabulary
-
-from z3ext.skintool import tool
-
-
-class Vocabulary(SimpleVocabulary):
-
-    def getTerm(self, value):
-        try:
-            return self.by_value[value]
-        except KeyError:
-            return self.by_value[self.by_value.keys()[0]]
-
-
-class SkinsVocabulary(object):
-    interface.implements(IVocabularyFactory)
-
-    def __call__(self, context):
-        terms = []
-        for layer, info in tool.skins_registry.items():
-            terms.append((info[2], info[1]))
-
-        terms.sort()
-        return Vocabulary(
-            [SimpleTerm(name,name,title) for title, name in terms])
-
-
-class LayersVocabulary(object):
-    interface.implements(IVocabularyFactory)
-
-    def __call__(self, context):
-        terms = []
-        for layer, info in tool.layers_registry.items():
-            terms.append((info[2], info[1]))
-
-        terms.sort()
-        return Vocabulary(
-            [SimpleTerm(name,name,title) for title, name in terms])

Copied: z3ext.skintool/tags/1.1.2/src/z3ext/skintool/vocabulary.py (from rev 95010, z3ext.skintool/trunk/src/z3ext/skintool/vocabulary.py)
===================================================================
--- z3ext.skintool/tags/1.1.2/src/z3ext/skintool/vocabulary.py	                        (rev 0)
+++ z3ext.skintool/tags/1.1.2/src/z3ext/skintool/vocabulary.py	2009-01-25 20:00:47 UTC (rev 95011)
@@ -0,0 +1,59 @@
+##############################################################################
+#
+# 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 interface
+from zope.schema.interfaces import IVocabularyFactory
+from zope.schema.vocabulary import SimpleTerm, SimpleVocabulary
+
+from z3ext.skintool import tool
+
+
+class Vocabulary(SimpleVocabulary):
+
+    def getTerm(self, value):
+        try:
+            return self.by_value[value]
+        except KeyError:
+            return self.by_value[self.by_value.keys()[0]]
+
+
+class SkinsVocabulary(object):
+    interface.implements(IVocabularyFactory)
+
+    def __call__(self, context):
+        terms = []
+        for layer, info in tool.skins_registry.items():
+            term = SimpleTerm(info[1], info[1], info[2])
+            term.description = info[3]
+            terms.append((info[2], info[1], term))
+
+        terms.sort()
+        return Vocabulary([term for title, name, term in terms])
+
+
+class LayersVocabulary(object):
+    interface.implements(IVocabularyFactory)
+
+    def __call__(self, context):
+        terms = []
+        for layer, info in tool.layers_registry.items():
+            term = SimpleTerm(info[1], info[1], info[2])
+            term.description = info[3]
+            terms.append((info[2], info[1], term))
+
+        terms.sort()
+        return Vocabulary([term for title, name, term in terms])



More information about the Checkins mailing list