[Checkins] SVN: z3ext.cssregistry/tags/1.4.0/ release tag
Nikolay Kim
fafhrd at datacom.kz
Mon Nov 24 14:52:32 EST 2008
Log message for revision 93329:
release tag
Changed:
A z3ext.cssregistry/tags/1.4.0/
D z3ext.cssregistry/tags/1.4.0/CHANGES.txt
A z3ext.cssregistry/tags/1.4.0/CHANGES.txt
D z3ext.cssregistry/tags/1.4.0/buildout.cfg
A z3ext.cssregistry/tags/1.4.0/buildout.cfg
D z3ext.cssregistry/tags/1.4.0/scripts/
D z3ext.cssregistry/tags/1.4.0/setup.py
A z3ext.cssregistry/tags/1.4.0/setup.py
D z3ext.cssregistry/tags/1.4.0/src/z3ext/cssregistry/configlet.py
D z3ext.cssregistry/tags/1.4.0/src/z3ext/cssregistry/configlet.zcml
D z3ext.cssregistry/tags/1.4.0/src/z3ext/cssregistry/configletview.pt
D z3ext.cssregistry/tags/1.4.0/src/z3ext/cssregistry/configletview.py
D z3ext.cssregistry/tags/1.4.0/src/z3ext/cssregistry/configure.zcml
A z3ext.cssregistry/tags/1.4.0/src/z3ext/cssregistry/configure.zcml
D z3ext.cssregistry/tags/1.4.0/src/z3ext/cssregistry/interfaces.py
A z3ext.cssregistry/tags/1.4.0/src/z3ext/cssregistry/interfaces.py
D z3ext.cssregistry/tags/1.4.0/src/z3ext/cssregistry/locales/
-=-
Deleted: z3ext.cssregistry/tags/1.4.0/CHANGES.txt
===================================================================
--- z3ext.cssregistry/trunk/CHANGES.txt 2008-11-24 11:40:53 UTC (rev 93304)
+++ z3ext.cssregistry/tags/1.4.0/CHANGES.txt 2008-11-24 19:52:31 UTC (rev 93329)
@@ -1,80 +0,0 @@
-=======
-CHANGES
-=======
-
-1.3.2 (2008-11-24)
-------------------
-
-- Include z3ext.controlpanel if installed
-
-
-1.3.1 (2008-11-13)
-------------------
-
-- Added property title
-
-- Property description is i18n aware
-
-- Fix Persistent property management
-
-- Added translations: ru, nl
-
-
-1.3.0 (2008-10-10)
-------------------
-
-- Update i18n
-
-- Do not use Persistent for registry and property
-
-
-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.
Copied: z3ext.cssregistry/tags/1.4.0/CHANGES.txt (from rev 93328, z3ext.cssregistry/trunk/CHANGES.txt)
===================================================================
--- z3ext.cssregistry/tags/1.4.0/CHANGES.txt (rev 0)
+++ z3ext.cssregistry/tags/1.4.0/CHANGES.txt 2008-11-24 19:52:31 UTC (rev 93329)
@@ -0,0 +1,86 @@
+=======
+CHANGES
+=======
+
+1.4.0 (2008-11-25)
+------------------
+
+- z3ext.controlpanel configlet moved to z3ext.ui.cssregistry package
+
+
+1.3.2 (2008-11-24)
+------------------
+
+- Include z3ext.controlpanel if installed
+
+
+1.3.1 (2008-11-13)
+------------------
+
+- Added property title
+
+- Property description is i18n aware
+
+- Fix Persistent property management
+
+- Added translations: ru, nl
+
+
+1.3.0 (2008-10-10)
+------------------
+
+- Update i18n
+
+- Do not use Persistent for registry and property
+
+
+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.4.0/buildout.cfg
===================================================================
--- z3ext.cssregistry/trunk/buildout.cfg 2008-11-24 11:40:53 UTC (rev 93304)
+++ z3ext.cssregistry/tags/1.4.0/buildout.cfg 2008-11-24 19:52:31 UTC (rev 93329)
@@ -1,63 +0,0 @@
-[buildout]
-develop = .
-parts = test coverage-test coverage-report i18n i18nall i18ncheck i18ndude
-
-[test]
-recipe = zc.recipe.testrunner
-eggs = z3ext.cssregistry [test]
-
-[coverage-test]
-recipe = zc.recipe.testrunner
-eggs = z3ext.cssregistry [test]
-defaults = ['--coverage', '../../coverage']
-
-[coverage-report]
-recipe = zc.recipe.egg
-eggs = z3c.coverage
-scripts = coverage=coverage-report
-arguments = ('coverage', 'coverage/report')
-
-[i18n]
-recipe = z3c.recipe.i18n:i18n
-packages = z3ext.cssregistry
-domain = z3ext.cssregistry
-output = ${buildout:directory}/src/z3ext/cssregistry/locales
-eggs = z3ext.cssregistry [test]
-zcml =
- <configure i18n_domain="zope"
- xmlns:zcml="http://namespaces.zope.org/zcml"
- xmlns:browser="http://namespaces.zope.org/browser">
- <include package="zope.component" file="meta.zcml" />
- <include package="zope.securitypolicy" file="meta.zcml" />
- <include package="zope.viewlet" file="meta.zcml" />
- <include package="zope.app.component" file="meta.zcml" />
- <include package="zope.app.security" file="meta.zcml" />
- <include package="zope.app.pagetemplate" file="meta.zcml" />
-
- <include package="zope.securitypolicy" />
- <include package="zope.contentprovider" />
- <include package="zope.app.security" />
- <include package="zope.app.zcmlfiles" />
- <include package="zope.app.authentication" />
-
- <include package="z3c.autoinclude" file="meta.zcml" />
- <include package="z3ext.layout" file="meta.zcml" />
- <include package="z3ext.controlpanel" file="meta.zcml" />
- <include package="z3ext.cssregistry" file="meta.zcml" />
- <include package="z3ext.cssregistry" />
- </configure>
-
-[i18nall]
-recipe = buildout_script
-template_dir = ${buildout:directory}/scripts/
-template = i18nall.in
-
-[i18ncheck]
-recipe = buildout_script
-template_dir = ${buildout:directory}/scripts/
-template = i18ncheck.in
-
-[i18ndude]
-unzip = true
-recipe = zc.recipe.egg
-eggs = i18ndude
Copied: z3ext.cssregistry/tags/1.4.0/buildout.cfg (from rev 93328, z3ext.cssregistry/trunk/buildout.cfg)
===================================================================
--- z3ext.cssregistry/tags/1.4.0/buildout.cfg (rev 0)
+++ z3ext.cssregistry/tags/1.4.0/buildout.cfg 2008-11-24 19:52:31 UTC (rev 93329)
@@ -0,0 +1,18 @@
+[buildout]
+develop = .
+parts = test coverage-test coverage-report
+
+[test]
+recipe = zc.recipe.testrunner
+eggs = z3ext.cssregistry [test]
+
+[coverage-test]
+recipe = zc.recipe.testrunner
+eggs = z3ext.cssregistry [test]
+defaults = ['--coverage', '../../coverage']
+
+[coverage-report]
+recipe = zc.recipe.egg
+eggs = z3c.coverage
+scripts = coverage=coverage-report
+arguments = ('coverage', 'coverage/report')
Deleted: z3ext.cssregistry/tags/1.4.0/setup.py
===================================================================
--- z3ext.cssregistry/trunk/setup.py 2008-11-24 11:40:53 UTC (rev 93304)
+++ z3ext.cssregistry/tags/1.4.0/setup.py 2008-11-24 19:52:31 UTC (rev 93329)
@@ -1,78 +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.3.3dev'
-
-
-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.i18n',
- 'zope.i18nmessageid',
- 'zope.configuration',
- 'z3c.autoinclude',
- 'z3c.zrtresource>=1.1.0',
- ],
- extras_require = dict(test=['zope.app.testing',
- 'zope.testing',
- 'zope.publisher',
- 'zope.traversing',
- 'zope.securitypolicy',
- 'zope.app.zcmlfiles',
- 'z3ext.layout',
- 'z3ext.controlpanel',
- 'z3ext.statusmessage',
- ]),
- include_package_data = True,
- zip_safe = False,
- )
Copied: z3ext.cssregistry/tags/1.4.0/setup.py (from rev 93326, z3ext.cssregistry/trunk/setup.py)
===================================================================
--- z3ext.cssregistry/tags/1.4.0/setup.py (rev 0)
+++ z3ext.cssregistry/tags/1.4.0/setup.py 2008-11-24 19:52:31 UTC (rev 93329)
@@ -0,0 +1,72 @@
+##############################################################################
+#
+# 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.4.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.autoinclude',
+ '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,
+ )
Deleted: z3ext.cssregistry/tags/1.4.0/src/z3ext/cssregistry/configlet.py
===================================================================
--- z3ext.cssregistry/trunk/src/z3ext/cssregistry/configlet.py 2008-11-24 11:40:53 UTC (rev 93304)
+++ z3ext.cssregistry/tags/1.4.0/src/z3ext/cssregistry/configlet.py 2008-11-24 19:52:31 UTC (rev 93329)
@@ -1,46 +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 BTrees.OOBTree import OOBTree
-from zope import interface, component
-from zope.component import getUtility
-
-from registry import CSSRegistry, registries
-from interfaces import ICSSRegistryConfiglet
-from interfaces import ICSSRegistry, ICSSRegistryLayer
-
-
-class CSSRegistryConfiglet(CSSRegistry):
- """ css registry configlet """
- interface.implements(ICSSRegistryConfiglet)
-
- @property
- def properties(self):
- properties = self.data.get('properties')
- if properties is None:
- properties = OOBTree()
- self.data['properties'] = properties
-
- return properties
-
-
- at interface.implementer(ICSSRegistry)
- at component.adapter(ICSSRegistryLayer, interface.Interface)
-def portalCssRegistry(layer, request):
- css = getUtility(ICSSRegistryConfiglet)
- if css.enabled:
- return css
Deleted: z3ext.cssregistry/tags/1.4.0/src/z3ext/cssregistry/configlet.zcml
===================================================================
--- z3ext.cssregistry/trunk/src/z3ext/cssregistry/configlet.zcml 2008-11-24 11:40:53 UTC (rev 93304)
+++ z3ext.cssregistry/tags/1.4.0/src/z3ext/cssregistry/configlet.zcml 2008-11-24 19:52:31 UTC (rev 93329)
@@ -1,38 +0,0 @@
-<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"
- zcml:condition="installed z3ext.controlpanel"
- i18n_domain="z3ext.cssregistry">
-
- <include package="z3ext.controlpanel" file="meta.zcml" />
- <include package="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" />
-
-</configure>
Deleted: z3ext.cssregistry/tags/1.4.0/src/z3ext/cssregistry/configletview.pt
===================================================================
--- z3ext.cssregistry/trunk/src/z3ext/cssregistry/configletview.pt 2008-11-24 11:40:53 UTC (rev 93304)
+++ z3ext.cssregistry/tags/1.4.0/src/z3ext/cssregistry/configletview.pt 2008-11-24 19:52:31 UTC (rev 93329)
@@ -1,102 +0,0 @@
-<form method="post" action="@@index.html" class="z-form"
- i18n:domain="z3ext.cssregistry">
- <div class="z-topframe" tal:define="props context/keys">
- <h1 tal:content="context/__title__">Portal CSS properties</h1>
- <div class="z-page-description" tal:content="context/__description__"></div>
-
- <div class="z-form-field">
- <label i18n:translate="">Status</label>
- <div>
- <select name="form.enabled">
- <option value="yes"
- tal:attributes="selected context/enabled" i18n:translate="">
- Enabled
- </option>
- <option value="no"
- tal:attributes="selected not:context/enabled" i18n:translate="">
- Disabled
- </option>
- </select>
- </div>
- </div>
- <br />
-
- <tal:block tal:condition="props">
- <h2 i18n:translate="">Properties</h2>
-
- <table class="z-content-listing">
- <tr>
- <th> </th>
- <th i18n:translate="">Property</th>
- <th i18n:translate="">Value</th>
- </tr>
- <tr tal:repeat="prop props"
- tal:attributes="class python:repeat['prop'].even() and 'even' or 'odd'">
- <td><input type="checkbox" name="property:list"
- tal:attributes="value prop" /></td>
- <td tal:content="python:context[prop].title or prop"></td>
- <td><input type="text"
- tal:attributes="name string:prop-$prop;
- value python:context[prop].value" /></td>
- </tr>
- </table>
- <div class="z-form-controls">
- <input type="submit" class="z-form-savebutton"
- name="form.save" value="Save" i18n:attributes="value" />
- <input type="submit" class="z-form-removebutton"
- name="form.remove" value="Remove" i18n:attributes="value" />
- </div>
- </tal:block>
-
- <tal:block tal:condition="not:props" i18n:translate="">
- There are no any defined properties.
- </tal:block>
- </div>
-
- <div class="z-frame">
- <h2 i18n:translate="">Add property</h2>
-
- <div class="z-form-field">
- <label i18n:translate="">Property name</label>
-
- <div>
- <input type="text" name="form.add.name" />
- </div>
- </div>
-
- <div class="z-form-field">
- <label i18n:translate="">Value</label>
-
- <div>
- <input type="text" name="form.add.value" />
- </div>
- </div>
-
- <div class="z-form-controls">
- <input type="submit" class="z-form-addbutton"
- name="form.add" value="Add" i18n:attributes="value" />
- </div>
- </div>
-
- <div class="z-frame"
- tal:define="regs view/listRegistries" tal:condition="regs">
- <h2 i18n:translate="">Copy/Update properties from existent registries</h2>
- <div> </div>
-
- <div class="z-form-field">
- <label i18n:translate="">Registry</label>
- <div></div>
- <select name="registry:int">
- <option tal:repeat="reg regs"
- tal:attributes="value python:repeat['reg'].index()"
- tal:content="string:${reg/name} (${reg/layer})"></option>
- </select>
- </div>
- <div class="z-form-controls">
- <input type="submit" class="z-form-button" name="form.copy"
- value="Copy" i18n:attributes="value" />
- <!--input type="submit" class="z-form-standalonebtn" name="form.update"
- value="Update" i18n:attributes="value" /-->
- </div>
- </div>
-</form>
Deleted: z3ext.cssregistry/tags/1.4.0/src/z3ext/cssregistry/configletview.py
===================================================================
--- z3ext.cssregistry/trunk/src/z3ext/cssregistry/configletview.py 2008-11-24 11:40:53 UTC (rev 93304)
+++ z3ext.cssregistry/tags/1.4.0/src/z3ext/cssregistry/configletview.py 2008-11-24 19:52:31 UTC (rev 93329)
@@ -1,91 +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 zope.security.proxy import getObject
-
-from z3ext.layout.pagelet import BrowserPagelet
-from z3ext.statusmessage.interfaces import IStatusMessage
-
-from z3ext.cssregistry.property import Property, CSSProperty
-from z3ext.cssregistry.registry import registries
-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)
-
- registry = self.listRegistries()[int(reg)]['registry']
-
- for prop, value in registry.items():
- self.context[prop] = CSSProperty(
- value.name, value.value,
- value.title, value.description, value.type)
-
- IStatusMessage(request).add(
- _(u"CSS Registry has been copied."))
-
- 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:]
- old = self.context[key]
- property = CSSProperty(
- old.name, value,
- old.title, old.description, old.type)
-
- self.context[key] = property
-
- 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.4.0/src/z3ext/cssregistry/configure.zcml
===================================================================
--- z3ext.cssregistry/trunk/src/z3ext/cssregistry/configure.zcml 2008-11-24 11:40:53 UTC (rev 93304)
+++ z3ext.cssregistry/tags/1.4.0/src/z3ext/cssregistry/configure.zcml 2008-11-24 19:52:31 UTC (rev 93329)
@@ -1,91 +0,0 @@
-<configure
- xmlns="http://namespaces.zope.org/zope"
- xmlns:i18n="http://namespaces.zope.org/i18n"
- xmlns:browser="http://namespaces.zope.org/browser"
- i18n_domain="z3ext.cssregistry">
-
- <includeDependencies package="." />
-
- <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.Property">
- <require
- permission="zope.Public"
- interface=".interfaces.ICSSProperty" />
- <require
- permission="zope.Public"
- set_schema=".interfaces.ICSSProperty" />
- </class>
-
- <class class=".property.CSSProperty">
- <require
- permission="zope.Public"
- interface=".interfaces.ICSSProperty" />
- <require
- permission="zope.Public"
- set_schema=".interfaces.ICSSProperty" />
- </class>
-
- <!-- default proeprties -->
- <browser:cssregistry title="Default css properties">
- <property name="backgroundColor" value="#F8F8F8" />
- <property name="contentBackgroundColor" value="white" />
-
- <property name="fontFamily"
- value="Verdana, Tahoma, Helvetica, Arial, sans-serif" />
- <property name="headingFontFamily"
- value="Verdana, Tahoma, Helvetica, Arial, sans-serif" />
- <property name="monospaceFontFamily"
- value="Monaco, 'Courier New', Courier, monospace" />
-
- <property name="fontColor" value="#252525" />
- <property name="fontBaseSize" value="70%" />
- <property name="fontSmallSize" value="90%" />
-
- <property name="linkColor" value="#003C75"/>
- <property name="linkActiveColor" value="Red" />
- <property name="linkVisitedColor" value="Purple" />
-
- <property name="borderWidth" value="1px" />
- <property name="borderStyle" value="solid" />
- <property name="borderStyleAnnotations" value="solid" />
-
- <property name="globalFontColor" value="#71A0CD" />
- <property name="globalBorderColor" value="#B0C7DD" />
- <property name="globalBackgroundColor" value="#E2EFFC" />
- <property name="globalExtraColor" value="#6088AE" />
- <property name="globalExtraBorderColor" value="#6088AE" />
-
- <property name="discreetColor" value="#76797C" />
-
- <property name="contentViewBorderColor" value="#A5A5A5" />
- <property name="contentViewBackgroundColor" value="#E4E4E4" />
- <property name="contentViewFontColor" value="#898989" />
-
- <property name="inputFontColor" value="#252525" />
-
- <property name="textTransform" value="lowercase" />
-
- <property name="evenRowBackgroundColor" value="#F3F7FD" />
- <property name="oddRowBackgroundColor" value="transparent" />
-
- <property name="notifyBorderColor" value="#ffa500" />
- <property name="notifyBackgroundColor" value="#ffce7b" />
- </browser:cssregistry>
-
- <include file="configlet.zcml" />
-
- <!-- translations -->
- <i18n:registerTranslations directory="locales"/>
-
-</configure>
Copied: z3ext.cssregistry/tags/1.4.0/src/z3ext/cssregistry/configure.zcml (from rev 93327, z3ext.cssregistry/trunk/src/z3ext/cssregistry/configure.zcml)
===================================================================
--- z3ext.cssregistry/tags/1.4.0/src/z3ext/cssregistry/configure.zcml (rev 0)
+++ z3ext.cssregistry/tags/1.4.0/src/z3ext/cssregistry/configure.zcml 2008-11-24 19:52:31 UTC (rev 93329)
@@ -0,0 +1,85 @@
+<configure
+ xmlns="http://namespaces.zope.org/zope"
+ xmlns:browser="http://namespaces.zope.org/browser"
+ i18n_domain="z3ext.cssregistry">
+
+ <includeDependencies package="." />
+
+ <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.Property">
+ <require
+ permission="zope.Public"
+ interface=".interfaces.ICSSProperty" />
+ <require
+ permission="zope.Public"
+ set_schema=".interfaces.ICSSProperty" />
+ </class>
+
+ <class class=".property.CSSProperty">
+ <require
+ permission="zope.Public"
+ interface=".interfaces.ICSSProperty" />
+ <require
+ permission="zope.Public"
+ set_schema=".interfaces.ICSSProperty" />
+ </class>
+
+ <!-- default proeprties -->
+ <browser:cssregistry title="Default css properties">
+ <property name="backgroundColor" value="#F8F8F8" />
+ <property name="contentBackgroundColor" value="white" />
+
+ <property name="fontFamily"
+ value="'Lucida Grande', Verdana, Tahoma, Helvetica, Sans-Serif" />
+ <property name="headingFontFamily"
+ value="'Lucida Grande', Verdana, Tahoma, Helvetica, Sans-Serif" />
+ <property name="monospaceFontFamily"
+ value="Monaco, 'Courier New', Courier, monospace" />
+
+ <property name="fontColor" value="#252525" />
+ <property name="fontBaseSize" value="70%" />
+ <property name="fontSmallSize" value="90%" />
+
+ <property name="linkColor" value="#003C75"/>
+ <property name="linkActiveColor" value="Red" />
+ <property name="linkVisitedColor" value="Purple" />
+
+ <property name="borderWidth" value="1px" />
+ <property name="borderStyle" value="solid" />
+ <property name="borderStyleAnnotations" value="solid" />
+
+ <property name="globalFontColor" value="#71A0CD" />
+ <property name="globalBorderColor" value="#B0C7DD" />
+ <property name="globalBackgroundColor" value="#E2EFFC" />
+ <property name="globalExtraColor" value="#6088AE" />
+ <property name="globalExtraBorderColor" value="#6088AE" />
+
+ <property name="discreetColor" value="#76797C" />
+
+ <property name="contentViewBorderColor" value="#A5A5A5" />
+ <property name="contentViewBackgroundColor" value="#E4E4E4" />
+ <property name="contentViewFontColor" value="#898989" />
+
+ <property name="inputFontColor" value="#252525" />
+
+ <property name="textTransform" value="lowercase" />
+
+ <property name="evenRowBackgroundColor" value="#F3F7FD" />
+ <property name="oddRowBackgroundColor" value="transparent" />
+
+ <property name="notifyBorderColor" value="#ffa500" />
+ <property name="notifyBackgroundColor" value="#ffce7b" />
+ </browser:cssregistry>
+
+</configure>
Deleted: z3ext.cssregistry/tags/1.4.0/src/z3ext/cssregistry/interfaces.py
===================================================================
--- z3ext.cssregistry/trunk/src/z3ext/cssregistry/interfaces.py 2008-11-24 11:40:53 UTC (rev 93304)
+++ z3ext.cssregistry/tags/1.4.0/src/z3ext/cssregistry/interfaces.py 2008-11-24 19:52:31 UTC (rev 93329)
@@ -1,89 +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.cssregistry interfaces
-
-$Id$
-"""
-from zope import schema, interface
-from zope.interface.common.mapping import IMapping
-from zope.i18nmessageid import MessageFactory
-
-_ = MessageFactory('z3ext.cssregistry')
-
-
-class ICSSRegistry(IMapping):
-
- properties = interface.Attribute('css properties')
-
- name = schema.TextLine(
- title = _(u'Name'),
- description = _(u'CSS Registry name'),
- default = u'',
- required = False)
-
- title = schema.TextLine(
- title = _(u'Title'),
- description = _(u'CSS Registry title'),
- default = u'',
- required = False)
-
-
-class ICSSProperty(interface.Interface):
-
- name = schema.TextLine(
- title = _(u'Name'),
- description = _(u'Property name'),
- required = True)
-
- title = schema.TextLine(
- title = _(u'Title'),
- description = _(u'Property title'),
- required = False)
-
- description = schema.TextLine(
- title = _(u'Description'),
- description = _(u'Property description'),
- required = False)
-
- value = schema.TextLine(
- title = _(u'Value'),
- description = _(u'Property value'),
- required = True)
-
- type = schema.TextLine(
- title = _(u'Type'),
- description = _(u'Property type. (color, font, size)'),
- required = False)
-
- def process(text):
- """ replace property in text """
-
-
-class ICSSRegistryLayer(interface.Interface):
- """ marker interface """
-
-
-class Layer(object):
- interface.implements(ICSSRegistryLayer)
-
-Layer = Layer()
-
-
-class ICSSRegistryConfiglet(ICSSRegistry):
- """ css registry configlet """
-
- enabled = schema.Bool(
- title = _(u'Enabled'),
- default = False,
- required = True)
Copied: z3ext.cssregistry/tags/1.4.0/src/z3ext/cssregistry/interfaces.py (from rev 93326, z3ext.cssregistry/trunk/src/z3ext/cssregistry/interfaces.py)
===================================================================
--- z3ext.cssregistry/tags/1.4.0/src/z3ext/cssregistry/interfaces.py (rev 0)
+++ z3ext.cssregistry/tags/1.4.0/src/z3ext/cssregistry/interfaces.py 2008-11-24 19:52:31 UTC (rev 93329)
@@ -0,0 +1,80 @@
+##############################################################################
+#
+# 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.cssregistry interfaces
+
+$Id$
+"""
+from zope import schema, interface
+from zope.interface.common.mapping import IMapping
+from zope.i18nmessageid import MessageFactory
+
+_ = MessageFactory('z3ext.cssregistry')
+
+
+class ICSSRegistry(IMapping):
+
+ properties = interface.Attribute('css properties')
+
+ name = schema.TextLine(
+ title = _(u'Name'),
+ description = _(u'CSS Registry name'),
+ default = u'',
+ required = False)
+
+ title = schema.TextLine(
+ title = _(u'Title'),
+ description = _(u'CSS Registry title'),
+ default = u'',
+ required = False)
+
+
+class ICSSProperty(interface.Interface):
+
+ name = schema.TextLine(
+ title = _(u'Name'),
+ description = _(u'Property name'),
+ required = True)
+
+ title = schema.TextLine(
+ title = _(u'Title'),
+ description = _(u'Property title'),
+ required = False)
+
+ description = schema.TextLine(
+ title = _(u'Description'),
+ description = _(u'Property description'),
+ required = False)
+
+ value = schema.TextLine(
+ title = _(u'Value'),
+ description = _(u'Property value'),
+ required = True)
+
+ type = schema.TextLine(
+ title = _(u'Type'),
+ description = _(u'Property type. (color, font, size)'),
+ required = False)
+
+ def process(text):
+ """ replace property in text """
+
+
+class ICSSRegistryLayer(interface.Interface):
+ """ marker interface """
+
+
+class Layer(object):
+ interface.implements(ICSSRegistryLayer)
+
+Layer = Layer()
More information about the Checkins
mailing list