[Checkins] SVN: z3ext.cssregistry/tags/1.2.2/ egg 1.2.2
Nikolay Kim
fafhrd at datacom.kz
Tue Apr 1 00:54:33 EDT 2008
Log message for revision 85054:
egg 1.2.2
Changed:
A z3ext.cssregistry/tags/1.2.2/
D z3ext.cssregistry/tags/1.2.2/CHANGES.txt
A z3ext.cssregistry/tags/1.2.2/CHANGES.txt
D z3ext.cssregistry/tags/1.2.2/setup.py
A z3ext.cssregistry/tags/1.2.2/setup.py
A z3ext.cssregistry/tags/1.2.2/src/z3ext/cssregistry/configlet.zcml
D z3ext.cssregistry/tags/1.2.2/src/z3ext/cssregistry/configletview.py
A z3ext.cssregistry/tags/1.2.2/src/z3ext/cssregistry/configletview.py
D z3ext.cssregistry/tags/1.2.2/src/z3ext/cssregistry/configure.zcml
A z3ext.cssregistry/tags/1.2.2/src/z3ext/cssregistry/configure.zcml
-=-
Copied: z3ext.cssregistry/tags/1.2.2 (from rev 84821, z3ext.cssregistry/trunk)
Deleted: z3ext.cssregistry/tags/1.2.2/CHANGES.txt
===================================================================
--- z3ext.cssregistry/trunk/CHANGES.txt 2008-03-21 06:44:44 UTC (rev 84821)
+++ z3ext.cssregistry/tags/1.2.2/CHANGES.txt 2008-04-01 04:54:10 UTC (rev 85054)
@@ -1,42 +0,0 @@
-=======
-CHANGES
-=======
-
-1.2.0 (2008-03-21)
-------------------
-
-- tests updated
-
-- move to svn.zope.org
-
-
-1.1.3 (2008-02-11)
-------------------
-
-- Fixed control panel configlet
-
-
-1.1.2 (2008-02-08)
-------------------
-
-- Security declarations fixed
-
-
-1.1.1 (2008-02-08)
-------------------
-
-- Remove support cssregistry as utility
-
-
-1.1.0 (2008-02-08)
-------------------
-
-- Added controlpanel configlet
-
-- Code cleanup
-
-
-1.0.0 (2007-12-01)
-------------------
-
-- Initial release.
Copied: z3ext.cssregistry/tags/1.2.2/CHANGES.txt (from rev 85052, z3ext.cssregistry/trunk/CHANGES.txt)
===================================================================
--- z3ext.cssregistry/tags/1.2.2/CHANGES.txt (rev 0)
+++ z3ext.cssregistry/tags/1.2.2/CHANGES.txt 2008-04-01 04:54:10 UTC (rev 85054)
@@ -0,0 +1,54 @@
+=======
+CHANGES
+=======
+
+1.2.2 (2008-04-01)
+------------------
+
+- Configlet declaration moved to seperate zcml file
+
+
+1.2.1 (2008-03-31)
+------------------
+
+- Fix wrong import
+
+
+1.2.0 (2008-03-21)
+------------------
+
+- tests updated
+
+- move to svn.zope.org
+
+
+1.1.3 (2008-02-11)
+------------------
+
+- Fixed control panel configlet
+
+
+1.1.2 (2008-02-08)
+------------------
+
+- Security declarations fixed
+
+
+1.1.1 (2008-02-08)
+------------------
+
+- Remove support cssregistry as utility
+
+
+1.1.0 (2008-02-08)
+------------------
+
+- Added controlpanel configlet
+
+- Code cleanup
+
+
+1.0.0 (2007-12-01)
+------------------
+
+- Initial release.
Deleted: z3ext.cssregistry/tags/1.2.2/setup.py
===================================================================
--- z3ext.cssregistry/trunk/setup.py 2008-03-21 06:44:44 UTC (rev 84821)
+++ z3ext.cssregistry/tags/1.2.2/setup.py 2008-04-01 04:54:10 UTC (rev 85054)
@@ -1,71 +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.cssregistry package
-
-$Id$
-"""
-import os
-from setuptools import setup, find_packages
-
-def read(*rnames):
- return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
-
-version = '1.2.0'
-
-
-setup(name='z3ext.cssregistry',
- version=version,
- description="CSS Registry - zrt-cssregistry command for z3c.zrtresource",
- long_description=(
- 'Detailed Dcoumentation\n' +
- '======================\n'
- + '\n\n' +
- read('src', 'z3ext', 'cssregistry', '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.interface',
- 'zope.component',
- 'zope.i18nmessageid',
- 'zope.configuration',
- 'z3c.zrtresource>=1.1.0',
- ],
- extras_require = dict(test=['zope.app.testing',
- 'zope.testing',
- 'zope.publisher',
- 'zope.traversing',
- ]),
- include_package_data = True,
- zip_safe = False,
- )
Copied: z3ext.cssregistry/tags/1.2.2/setup.py (from rev 85028, z3ext.cssregistry/trunk/setup.py)
===================================================================
--- z3ext.cssregistry/tags/1.2.2/setup.py (rev 0)
+++ z3ext.cssregistry/tags/1.2.2/setup.py 2008-04-01 04:54:10 UTC (rev 85054)
@@ -0,0 +1,71 @@
+##############################################################################
+#
+# 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.cssregistry package
+
+$Id$
+"""
+import os
+from setuptools import setup, find_packages
+
+def read(*rnames):
+ return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
+
+version = '1.2.2'
+
+
+setup(name='z3ext.cssregistry',
+ version=version,
+ description="CSS Registry - zrt-cssregistry command for z3c.zrtresource",
+ long_description=(
+ 'Detailed Dcoumentation\n' +
+ '======================\n'
+ + '\n\n' +
+ read('src', 'z3ext', 'cssregistry', '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.interface',
+ 'zope.component',
+ 'zope.i18nmessageid',
+ 'zope.configuration',
+ 'z3c.zrtresource>=1.1.0',
+ ],
+ extras_require = dict(test=['zope.app.testing',
+ 'zope.testing',
+ 'zope.publisher',
+ 'zope.traversing',
+ ]),
+ include_package_data = True,
+ zip_safe = False,
+ )
Copied: z3ext.cssregistry/tags/1.2.2/src/z3ext/cssregistry/configlet.zcml (from rev 85052, z3ext.cssregistry/trunk/src/z3ext/cssregistry/configlet.zcml)
===================================================================
--- z3ext.cssregistry/tags/1.2.2/src/z3ext/cssregistry/configlet.zcml (rev 0)
+++ z3ext.cssregistry/tags/1.2.2/src/z3ext/cssregistry/configlet.zcml 2008-04-01 04:54:10 UTC (rev 85054)
@@ -0,0 +1,39 @@
+<configure
+ xmlns="http://namespaces.zope.org/zope"
+ xmlns:zcml="http://namespaces.zope.org/zcml"
+ xmlns:z3ext="http://namespaces.zope.org/z3ext"
+ xmlns:browser="http://namespaces.zope.org/browser"
+ i18n_domain="z3ext">
+
+ <zcml:configure zcml:condition="installed z3ext.controlpanel">
+ <include package="z3ext.controlpanel" file="meta.zcml" />
+
+ <z3ext:configlet
+ name="ui.cssregistry"
+ title="CSS Properties"
+ description="CSS properties registry configuration."
+ schema=".interfaces.ICSSRegistryConfiglet"
+ class=".configlet.CSSRegistryConfiglet" />
+
+ <adapter factory=".configlet.portalCssRegistry" />
+
+ <class class=".configlet.CSSRegistryConfiglet">
+ <require
+ permission="zope.Public"
+ attributes="name title"
+ interface="zope.interface.common.mapping.IEnumerableMapping" />
+ <require
+ permission="z3ext.Configure"
+ interface="zope.interface.common.mapping.IWriteMapping" />
+ </class>
+
+ <browser:page
+ name="index.html"
+ for=".interfaces.ICSSRegistryConfiglet"
+ template="configletview.pt"
+ class=".configletview.ViewRegistry"
+ permission="z3ext.Configure" />
+
+ </zcml:configure>
+
+</configure>
Deleted: z3ext.cssregistry/tags/1.2.2/src/z3ext/cssregistry/configletview.py
===================================================================
--- z3ext.cssregistry/trunk/src/z3ext/cssregistry/configletview.py 2008-03-21 06:44:44 UTC (rev 84821)
+++ z3ext.cssregistry/tags/1.2.2/src/z3ext/cssregistry/configletview.py 2008-04-01 04:54:10 UTC (rev 85054)
@@ -1,86 +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.
-#
-##############################################################################
-""" `browser:cssregistry` directive
-
-$Id$
-"""
-from zope import interface
-from z3ext.layout.pagelet import BrowserPagelet
-from z3ext.portalmessage.interfaces import IMessageService
-
-from z3ext.cssregistry.i18n import _
-from z3ext.cssregistry.registry import registries
-from z3ext.cssregistry.property import CSSProperty
-from z3ext.cssregistry.interfaces import ICSSRegistry
-
-
-class ViewRegistry(BrowserPagelet):
-
- def listRegistries(self):
- regs = []
- for key, registry in registries.items():
- name, layer = key
-
- regs.append({'name': name or 'Without name',
- 'layer': '%s.%s'%(layer.__module__, layer.__name__),
- 'registry': registry})
-
- return regs
-
- def update(self):
- request = self.request
-
- if 'form.copy' in request:
- reg = request.get('registry', None)
-
- try:
- registry = self.listRegistries()[int(reg)]['registry']
-
- for prop, value in registry.items():
- self.context[prop] = value
-
- IMessageService(request).add(
- _(u"CSS Registry has been copied."))
- except:
- pass
-
- if 'form.add' in request:
- name = request.get('form.add.name', '').strip()
- if not name:
- IMessageService(request).add(
- _(u"Can't add property with emtpy name."), 'error')
- else:
- self.context[name] = CSSProperty(
- name, request.get('form.add.value', ''))
-
- if 'form.remove' in request:
- for prop in request.get('property', ()):
- del self.context[prop]
- IMessageService(request).add(_(u"Properties have been removed."))
-
- if 'form.save' in request:
-
- for key, value in request.form.items():
- if key.startswith('prop-'):
- key = key[5:]
- self.context[key].value = value
-
- if request.get('form.enabled') == 'yes':
- self.context.enabled = True
- else:
- self.context.enabled = False
-
- IMessageService(request).add(_(u"Properties have been changed."))
-
- return self.index()
Copied: z3ext.cssregistry/tags/1.2.2/src/z3ext/cssregistry/configletview.py (from rev 84837, z3ext.cssregistry/trunk/src/z3ext/cssregistry/configletview.py)
===================================================================
--- z3ext.cssregistry/tags/1.2.2/src/z3ext/cssregistry/configletview.py (rev 0)
+++ z3ext.cssregistry/tags/1.2.2/src/z3ext/cssregistry/configletview.py 2008-04-01 04:54:10 UTC (rev 85054)
@@ -0,0 +1,86 @@
+##############################################################################
+#
+# 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.
+#
+##############################################################################
+""" `browser:cssregistry` directive
+
+$Id$
+"""
+from zope import interface
+from z3ext.layout.pagelet import BrowserPagelet
+from z3ext.statusmessage.interfaces import IStatusMessage
+
+from z3ext.cssregistry.i18n import _
+from z3ext.cssregistry.registry import registries
+from z3ext.cssregistry.property import CSSProperty
+from z3ext.cssregistry.interfaces import ICSSRegistry
+
+
+class ViewRegistry(BrowserPagelet):
+
+ def listRegistries(self):
+ regs = []
+ for key, registry in registries.items():
+ name, layer = key
+
+ regs.append({'name': name or 'Without name',
+ 'layer': '%s.%s'%(layer.__module__, layer.__name__),
+ 'registry': registry})
+
+ return regs
+
+ def update(self):
+ request = self.request
+
+ if 'form.copy' in request:
+ reg = request.get('registry', None)
+
+ try:
+ registry = self.listRegistries()[int(reg)]['registry']
+
+ for prop, value in registry.items():
+ self.context[prop] = value
+
+ IStatusMessage(request).add(
+ _(u"CSS Registry has been copied."))
+ except:
+ pass
+
+ if 'form.add' in request:
+ name = request.get('form.add.name', '').strip()
+ if not name:
+ IStatusMessage(request).add(
+ _(u"Can't add property with emtpy name."), 'error')
+ else:
+ self.context[name] = CSSProperty(
+ name, request.get('form.add.value', ''))
+
+ if 'form.remove' in request:
+ for prop in request.get('property', ()):
+ del self.context[prop]
+ IStatusMessage(request).add(_(u"Properties have been removed."))
+
+ if 'form.save' in request:
+
+ for key, value in request.form.items():
+ if key.startswith('prop-'):
+ key = key[5:]
+ self.context[key].value = value
+
+ if request.get('form.enabled') == 'yes':
+ self.context.enabled = True
+ else:
+ self.context.enabled = False
+
+ IStatusMessage(request).add(_(u"Properties have been changed."))
+
+ return self.index()
Deleted: z3ext.cssregistry/tags/1.2.2/src/z3ext/cssregistry/configure.zcml
===================================================================
--- z3ext.cssregistry/trunk/src/z3ext/cssregistry/configure.zcml 2008-03-21 06:44:44 UTC (rev 84821)
+++ z3ext.cssregistry/tags/1.2.2/src/z3ext/cssregistry/configure.zcml 2008-04-01 04:54:10 UTC (rev 85054)
@@ -1,62 +0,0 @@
-<configure
- xmlns="http://namespaces.zope.org/zope"
- xmlns:browser="http://namespaces.zope.org/browser"
- i18n_domain="z3ext">
-
- <utility
- name="cssregistry"
- provides="z3c.zrtresource.interfaces.IZRTCommandFactory"
- component=".command.cssregistry_factory" />
-
- <class class=".registry.CSSRegistry">
- <require
- permission="zope.Public"
- attributes="name title"
- interface="zope.interface.common.mapping.IEnumerableMapping" />
- </class>
-
- <class class=".property.CSSProperty">
- <require
- permission="zope.Public"
- interface=".interfaces.ICSSProperty" />
-
- <require
- permission="zope.Public"
- set_schema=".interfaces.ICSSProperty" />
- </class>
-
- <zcml:configure
- xmlns:zcml="http://namespaces.zope.org/zcml"
- xmlns:z3ext="http://namespaces.zope.org/z3ext"
- xmlns:browser="http://namespaces.zope.org/browser"
- zcml:condition="installed z3ext.controlpanel">
-
- <z3ext:configlet
- name="ui.cssregistry"
- title="CSS Properties"
- description="CSS properties registry configuration."
- schema=".interfaces.ICSSRegistryConfiglet"
- class=".configlet.CSSRegistryConfiglet" />
-
- <adapter factory=".configlet.portalCssRegistry" />
-
- <class class=".configlet.CSSRegistryConfiglet">
- <require
- permission="zope.Public"
- attributes="name title"
- interface="zope.interface.common.mapping.IEnumerableMapping" />
- <require
- permission="z3ext.Configure"
- interface="zope.interface.common.mapping.IWriteMapping" />
- </class>
-
- <browser:page
- name="index.html"
- for=".interfaces.ICSSRegistryConfiglet"
- template="configletview.pt"
- class=".configletview.ViewRegistry"
- permission="z3ext.Configure" />
-
- </zcml:configure>
-
-</configure>
Copied: z3ext.cssregistry/tags/1.2.2/src/z3ext/cssregistry/configure.zcml (from rev 85052, z3ext.cssregistry/trunk/src/z3ext/cssregistry/configure.zcml)
===================================================================
--- z3ext.cssregistry/tags/1.2.2/src/z3ext/cssregistry/configure.zcml (rev 0)
+++ z3ext.cssregistry/tags/1.2.2/src/z3ext/cssregistry/configure.zcml 2008-04-01 04:54:10 UTC (rev 85054)
@@ -0,0 +1,29 @@
+<configure
+ xmlns="http://namespaces.zope.org/zope"
+ i18n_domain="z3ext">
+
+ <utility
+ name="cssregistry"
+ provides="z3c.zrtresource.interfaces.IZRTCommandFactory"
+ component=".command.cssregistry_factory" />
+
+ <class class=".registry.CSSRegistry">
+ <require
+ permission="zope.Public"
+ attributes="name title"
+ interface="zope.interface.common.mapping.IEnumerableMapping" />
+ </class>
+
+ <class class=".property.CSSProperty">
+ <require
+ permission="zope.Public"
+ interface=".interfaces.ICSSProperty" />
+
+ <require
+ permission="zope.Public"
+ set_schema=".interfaces.ICSSProperty" />
+ </class>
+
+ <include file="configlet.zcml" />
+
+</configure>
More information about the Checkins
mailing list