[Checkins] SVN: z3c.preference/branches/icemac-dev/ snapshot

Michael Howitz mh at gocept.com
Thu Jul 8 14:47:34 EDT 2010


Log message for revision 114353:
  snapshot

Changed:
  _U  z3c.preference/branches/icemac-dev/
  A   z3c.preference/branches/icemac-dev/CHANGES.txt
  A   z3c.preference/branches/icemac-dev/COPYRIGHT.txt
  A   z3c.preference/branches/icemac-dev/LICENSE.txt
  A   z3c.preference/branches/icemac-dev/README.txt
  A   z3c.preference/branches/icemac-dev/bootstrap.py
  A   z3c.preference/branches/icemac-dev/buildout.cfg
  A   z3c.preference/branches/icemac-dev/setup.py
  A   z3c.preference/branches/icemac-dev/src/
  A   z3c.preference/branches/icemac-dev/src/z3c/
  A   z3c.preference/branches/icemac-dev/src/z3c/__init__.py
  A   z3c.preference/branches/icemac-dev/src/z3c/preference/
  A   z3c.preference/branches/icemac-dev/src/z3c/preference/README.txt
  A   z3c.preference/branches/icemac-dev/src/z3c/preference/__init__.py
  A   z3c.preference/branches/icemac-dev/src/z3c/preference/configure.zcml
  A   z3c.preference/branches/icemac-dev/src/z3c/preference/ftesting.zcml
  A   z3c.preference/branches/icemac-dev/src/z3c/preference/testing.py
  A   z3c.preference/branches/icemac-dev/src/z3c/preference/tests.py

-=-

Property changes on: z3c.preference/branches/icemac-dev
___________________________________________________________________
Added: svn:ignore
   + develop-eggs
bin
parts
.installed.cfg
coverage


Added: z3c.preference/branches/icemac-dev/CHANGES.txt
===================================================================
--- z3c.preference/branches/icemac-dev/CHANGES.txt	                        (rev 0)
+++ z3c.preference/branches/icemac-dev/CHANGES.txt	2010-07-08 18:47:34 UTC (rev 114353)
@@ -0,0 +1,70 @@
+=======
+CHANGES
+=======
+
+0.8.1 (unreleased)
+------------------
+
+- Nothing changed yet.
+
+
+0.8.0 (2009-12-29)
+------------------
+
+- Added translation for ``LinkColumn.linkContent``.
+
+- Added ``I18nGetAttrColumn`` which translates its content.
+
+
+0.7.0 (2009-12-29)
+------------------
+
+- Allow to initialze the column definitions without requiring an
+  entire table update.
+
+- Fixed tests, so they no longer use ``zope.app.container`` (which was
+  even not declared as test dependency).
+
+- Head cell contents are now translated.
+
+0.6.1 (2009-02-22)
+------------------
+
+- Be smart to not ``IPhysicallyLocatable`` objects if we lookup the
+  ``__name__`` value in columns.
+
+
+0.6.0 (2008-11-12)
+------------------
+
+- Bugfix: Allow to switch the sort order on the header link. This was
+  blocked to descending after the first click
+
+- Bugfix: CheckBoxColumn, ensure that we allways use a list for compare
+  selected items. It was possible that if only one item get selected
+  we compared a string. If this string was a sub string of another existing
+  item the other item get selected too.
+
+- Moved advanced batching implementation into z3c.batching
+
+- Implemented GetAttrFormatterColumn. This column can be used for simple
+  value formatting columns.
+
+- Bad typo in columns.py: Renamed ``getLinkConent`` to ``getLinkContent``
+
+- Bug: Changed return string in getLinkCSS. It was using css="" instead of
+  class="" for CSS classes. Thanks to Dan for reporting this bugs.
+
+- Implemented SelectedItemColumn
+
+- Fix CheckBoxColumn, use always the correct selectedItems. Use always real
+  selectedItems form the table
+
+- Fix RadioColumn, use always the correct selectedItem from the selectedItems
+  list. Use always the first selectedItems form the tables selectedItems
+
+
+0.5.0 (2008-04-13)
+------------------
+
+- Initial Release.


Property changes on: z3c.preference/branches/icemac-dev/CHANGES.txt
___________________________________________________________________
Added: svn:keywords
   + Id Rev Date
Added: svn:eol-style
   + native

Added: z3c.preference/branches/icemac-dev/COPYRIGHT.txt
===================================================================
--- z3c.preference/branches/icemac-dev/COPYRIGHT.txt	                        (rev 0)
+++ z3c.preference/branches/icemac-dev/COPYRIGHT.txt	2010-07-08 18:47:34 UTC (rev 114353)
@@ -0,0 +1 @@
+Zope Foundation and Contributors
\ No newline at end of file


Property changes on: z3c.preference/branches/icemac-dev/COPYRIGHT.txt
___________________________________________________________________
Added: svn:keywords
   + Id Rev Date
Added: svn:eol-style
   + native

Added: z3c.preference/branches/icemac-dev/LICENSE.txt
===================================================================
--- z3c.preference/branches/icemac-dev/LICENSE.txt	                        (rev 0)
+++ z3c.preference/branches/icemac-dev/LICENSE.txt	2010-07-08 18:47:34 UTC (rev 114353)
@@ -0,0 +1,44 @@
+Zope Public License (ZPL) Version 2.1
+
+A copyright notice accompanies this license document that identifies the
+copyright holders.
+
+This license has been certified as open source. It has also been designated as
+GPL compatible by the Free Software Foundation (FSF).
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions in source code must retain the accompanying copyright
+notice, this list of conditions, and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the accompanying copyright
+notice, this list of conditions, and the following disclaimer in the
+documentation and/or other materials provided with the distribution.
+
+3. Names of the copyright holders must not be used to endorse or promote
+products derived from this software without prior written permission from the
+copyright holders.
+
+4. The right to distribute this software or to use it for any purpose does not
+give you the right to use Servicemarks (sm) or Trademarks (tm) of the
+copyright
+holders. Use of them is covered by separate agreement with the copyright
+holders.
+
+5. If any files are modified, you must cause the modified files to carry
+prominent notices stating that you changed the files and the date of any
+change.
+
+Disclaimer
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
+INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


Property changes on: z3c.preference/branches/icemac-dev/LICENSE.txt
___________________________________________________________________
Added: svn:keywords
   + Id Rev Date
Added: svn:eol-style
   + native

Added: z3c.preference/branches/icemac-dev/README.txt
===================================================================
--- z3c.preference/branches/icemac-dev/README.txt	                        (rev 0)
+++ z3c.preference/branches/icemac-dev/README.txt	2010-07-08 18:47:34 UTC (rev 114353)
@@ -0,0 +1,2 @@
+This packages provides a user interface for zope.preference using
+z3c.pagelet and z3c.form.
\ No newline at end of file


Property changes on: z3c.preference/branches/icemac-dev/README.txt
___________________________________________________________________
Added: svn:keywords
   + Id Rev Date
Added: svn:eol-style
   + native

Added: z3c.preference/branches/icemac-dev/bootstrap.py
===================================================================
--- z3c.preference/branches/icemac-dev/bootstrap.py	                        (rev 0)
+++ z3c.preference/branches/icemac-dev/bootstrap.py	2010-07-08 18:47:34 UTC (rev 114353)
@@ -0,0 +1,52 @@
+##############################################################################
+#
+# Copyright (c) 2008 Zope Foundation 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.
+#
+##############################################################################
+"""Bootstrap a buildout-based project
+
+Simply run this script in a directory containing a buildout.cfg.
+The script accepts buildout command-line options, so you can
+use the -c option to specify an alternate configuration file.
+
+$Id$
+"""
+
+import os, shutil, sys, tempfile, urllib2
+
+tmpeggs = tempfile.mkdtemp()
+
+ez = {}
+exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py'
+                     ).read() in ez
+ez['use_setuptools'](to_dir=tmpeggs, download_delay=0)
+
+import pkg_resources
+
+cmd = 'from setuptools.command.easy_install import main; main()'
+if sys.platform == 'win32':
+    cmd = '"%s"' % cmd # work around spawn lamosity on windows
+
+ws = pkg_resources.working_set
+assert os.spawnle(
+    os.P_WAIT, sys.executable, sys.executable,
+    '-c', cmd, '-mqNxd', tmpeggs, 'zc.buildout',
+    dict(os.environ,
+         PYTHONPATH=
+         ws.find(pkg_resources.Requirement.parse('setuptools')).location
+         ),
+    ) == 0
+
+ws.add_entry(tmpeggs)
+ws.require('zc.buildout')
+import zc.buildout.buildout
+zc.buildout.buildout.main(sys.argv[1:] + ['bootstrap'])
+shutil.rmtree(tmpeggs)


Property changes on: z3c.preference/branches/icemac-dev/bootstrap.py
___________________________________________________________________
Added: svn:keywords
   + Id Rev Date
Added: svn:eol-style
   + native

Added: z3c.preference/branches/icemac-dev/buildout.cfg
===================================================================
--- z3c.preference/branches/icemac-dev/buildout.cfg	                        (rev 0)
+++ z3c.preference/branches/icemac-dev/buildout.cfg	2010-07-08 18:47:34 UTC (rev 114353)
@@ -0,0 +1,7 @@
+[buildout]
+develop = .
+parts = test
+
+[test]
+recipe = zc.recipe.testrunner
+eggs = z3c.preference [test]

Added: z3c.preference/branches/icemac-dev/setup.py
===================================================================
--- z3c.preference/branches/icemac-dev/setup.py	                        (rev 0)
+++ z3c.preference/branches/icemac-dev/setup.py	2010-07-08 18:47:34 UTC (rev 114353)
@@ -0,0 +1,72 @@
+##############################################################################
+#
+# Copyright (c) 2010 Zope Foundation 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"""
+
+import os
+from setuptools import setup, find_packages
+
+def read(*rnames):
+    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
+
+setup (
+    name='z3c.preference',
+    version = '0.1.0dev',
+    author = "Michael Howitz",
+    author_email = "zope-dev at zope.org",
+    description = "UI for zope.preference using z3c.pagelet and z3c.form.",
+    long_description=(
+        read('README.txt')
+        + '\n\n.. contents::\n\n' +
+        read('src', 'z3c', 'preference', 'README.txt')
+        + '\n\n' +
+        read('CHANGES.txt')
+        ),
+    license = "ZPL 2.1",
+    keywords = "zope3 bluebream z3c preference ui",
+    classifiers = [
+        'Development Status :: 3 - Alpha',
+        'Environment :: Web Environment',
+        'Intended Audience :: Developers',
+        'License :: OSI Approved',
+        'License :: OSI Approved :: Zope Public License',
+        'Programming Language :: Python',
+        'Natural Language :: English',
+        'Operating System :: OS Independent',
+        'Topic :: Internet :: WWW/HTTP',
+        'Framework :: Zope3'
+        ],
+    url = 'http://pypi.python.org/pypi/z3c.preference',
+    packages = find_packages('src'),
+    include_package_data = True,
+    package_dir = {'':'src'},
+    namespace_packages = ['z3c'],
+    extras_require = dict(
+        test = [
+            # 'z3c.testing',
+            'zope.app.testing',
+            # 'zope.publisher',
+            'zope.testbrowser',
+            # 'zope.testing',
+            'zope.principalregistry',
+            'zope.securitypolicy',
+            ],
+        ),
+    install_requires = [
+        'setuptools',
+        'zope.preference',
+        'z3c.pagelet',
+        'z3c.form',
+        ],
+    zip_safe = False,
+)


Property changes on: z3c.preference/branches/icemac-dev/setup.py
___________________________________________________________________
Added: svn:keywords
   + Id Rev Date
Added: svn:eol-style
   + native

Added: z3c.preference/branches/icemac-dev/src/z3c/__init__.py
===================================================================
--- z3c.preference/branches/icemac-dev/src/z3c/__init__.py	                        (rev 0)
+++ z3c.preference/branches/icemac-dev/src/z3c/__init__.py	2010-07-08 18:47:34 UTC (rev 114353)
@@ -0,0 +1 @@
+__import__('pkg_resources').declare_namespace(__name__)


Property changes on: z3c.preference/branches/icemac-dev/src/z3c/__init__.py
___________________________________________________________________
Added: svn:keywords
   + Id Rev Date
Added: svn:eol-style
   + native

Added: z3c.preference/branches/icemac-dev/src/z3c/preference/README.txt
===================================================================
--- z3c.preference/branches/icemac-dev/src/z3c/preference/README.txt	                        (rev 0)
+++ z3c.preference/branches/icemac-dev/src/z3c/preference/README.txt	2010-07-08 18:47:34 UTC (rev 114353)
@@ -0,0 +1,8 @@
+==============
+z3c.preference
+==============
+
+>>> from zope.testbrowser.testing import Browser
+>>> browser = Browser()
+>>> browser.handleErrors = False
+>>> browser.open('http://localhost/++preferences++')


Property changes on: z3c.preference/branches/icemac-dev/src/z3c/preference/README.txt
___________________________________________________________________
Added: svn:keywords
   + Id Rev Date
Added: svn:eol-style
   + native

Added: z3c.preference/branches/icemac-dev/src/z3c/preference/__init__.py
===================================================================
--- z3c.preference/branches/icemac-dev/src/z3c/preference/__init__.py	                        (rev 0)
+++ z3c.preference/branches/icemac-dev/src/z3c/preference/__init__.py	2010-07-08 18:47:34 UTC (rev 114353)
@@ -0,0 +1 @@
+#


Property changes on: z3c.preference/branches/icemac-dev/src/z3c/preference/__init__.py
___________________________________________________________________
Added: svn:keywords
   + Id Rev Date
Added: svn:eol-style
   + native

Added: z3c.preference/branches/icemac-dev/src/z3c/preference/configure.zcml
===================================================================
--- z3c.preference/branches/icemac-dev/src/z3c/preference/configure.zcml	                        (rev 0)
+++ z3c.preference/branches/icemac-dev/src/z3c/preference/configure.zcml	2010-07-08 18:47:34 UTC (rev 114353)
@@ -0,0 +1,6 @@
+<configure
+    xmlns="http://namespaces.zope.org/zope"
+    i18n_domain="z3c">
+
+
+</configure>


Property changes on: z3c.preference/branches/icemac-dev/src/z3c/preference/configure.zcml
___________________________________________________________________
Added: svn:keywords
   + Id Rev Date
Added: svn:eol-style
   + native

Added: z3c.preference/branches/icemac-dev/src/z3c/preference/ftesting.zcml
===================================================================
--- z3c.preference/branches/icemac-dev/src/z3c/preference/ftesting.zcml	                        (rev 0)
+++ z3c.preference/branches/icemac-dev/src/z3c/preference/ftesting.zcml	2010-07-08 18:47:34 UTC (rev 114353)
@@ -0,0 +1,78 @@
+<configure
+   xmlns="http://namespaces.zope.org/zope"
+   i18n_domain="icemac.install">
+
+ <!--  <exclude package="zope.app.authentication.browser" file="session.zcml" /> -->
+ <!--  <exclude package="zope.app.authentication.browser" file="httpplugins.zcml" /> -->
+ <!--  <exclude package="zope.app.authentication.browser" file="principalfolder.zcml" /> -->
+ <!--  <exclude package="zope.app.authentication.browser" file="groupfolder.zcml" /> -->
+ <!--  <exclude package="zope.app.authentication.browser" /> -->
+ <!--  <exclude package="zc.catalog.browser" /> -->
+ <!--  <exclude package="zope.dublincore.browser" /> -->
+ <!--  <exclude package="zope.app.publisher.xmlrpc" /> -->
+ <!--  <exclude package="z3c.form" file="file.zcml" /> -->
+
+
+  <include package="zope.security" file="meta.zcml" />
+  <include package="zope.component" file="meta.zcml" />
+  <!-- <include package="zope.app.publisher.browser" file="meta.zcml" /> -->
+  <include package="zope.browserpage" file="meta.zcml" />
+  <include package="zope.app.pagetemplate" file="meta.zcml" />
+  <include package="zope.app.publication" file="meta.zcml" />
+ <include package="zope.principalregistry" file="meta.zcml" />
+  <include package="zope.publisher" file="meta.zcml" />
+
+ <!--  <include package="zope.app.generations" file="subscriber.zcml" /> -->
+  <include package="zope.app.appsetup" />
+  <include package="zope.security" />
+  <include package="zope.site" />
+  <include package="zope.error" />
+ <!--  <include package="zope.dublincore" /> -->
+  <include package="zope.publisher" />
+  <include package="zope.traversing" />
+ <!--  <include package="zope.traversing.browser" /> -->
+ <!--  <include package="zope.session" /> -->
+ <!--  <include package="zope.keyreference" /> -->
+ <!--  <include package="zope.intid" /> -->
+ <!--  <include package="zope.catalog" /> -->
+  <include package="zope.principalregistry" />
+  <include package="zope.container" />
+  <include package="zope.app.publication" />
+ <!--  <include package="zope.i18n" /> -->
+ <!--  <include package="zope.app.principalannotation" file="bootstrap.zcml"/> -->
+  <include package="zope.location" />
+  <include package="zope.component" />
+ <!--  <include package="zope.app.authentication" /> -->
+  <!-- <include package="zope.app.publisher" /> -->
+  <!-- <include package="zope.authentication" /> -->
+  <include package="zope.password" />
+  <include package="zope.annotation" />
+
+ <!--  own component registrations -->
+
+  <include package="zope.securitypolicy" file="meta.zcml" />
+  <!-- <include package="zope.viewlet" file="meta.zcml" /> -->
+ <!--  <include package="z3c.form" file="meta.zcml" /> -->
+ <!-- <include package="z3c.macro" file="meta.zcml" /> -->
+  <include package="z3c.template" file="meta.zcml" />
+  <include package="z3c.pagelet" file="meta.zcml" />
+ <!--  <include package="zope.mimetype" file="meta.zcml" /> -->
+
+  <!-- <include package="z3c.layer.pagelet" /> -->
+ <!--  <include package="z3c.form" /> -->
+ <!--  <include package="z3c.formui" /> -->
+ <!--  <include package="z3c.macro" /> -->
+ <!--  <include package="z3c.menu.ready2go"/> -->
+  <include package="z3c.pagelet" />
+ <!--  <include package="z3c.table" /> -->
+ <!--  <include package="zc.catalog"/> -->
+ <!--  <include package="zc.sourcefactory" /> -->
+  <include package="zope.contentprovider" />
+  <include package="zope.securitypolicy" />
+ <!--  <include package="z3c.pt" /> -->
+
+
+ <include package="zope.preference" file="meta.zcml" />
+ <include package="zope.preference" />
+
+</configure>


Property changes on: z3c.preference/branches/icemac-dev/src/z3c/preference/ftesting.zcml
___________________________________________________________________
Added: svn:keywords
   + Id Rev Date
Added: svn:eol-style
   + native

Added: z3c.preference/branches/icemac-dev/src/z3c/preference/testing.py
===================================================================
--- z3c.preference/branches/icemac-dev/src/z3c/preference/testing.py	                        (rev 0)
+++ z3c.preference/branches/icemac-dev/src/z3c/preference/testing.py	2010-07-08 18:47:34 UTC (rev 114353)
@@ -0,0 +1,20 @@
+##############################################################################
+#
+# Copyright (c) 2010 Zope Foundation 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.
+#
+##############################################################################
+
+import os.path
+import zope.app.testing.functional
+
+Layer = zope.app.testing.functional.ZCMLLayer(
+    os.path.join(os.path.split(__file__)[0], 'ftesting.zcml'),
+    __name__, 'z3c.preference-layer', allow_teardown=True)


Property changes on: z3c.preference/branches/icemac-dev/src/z3c/preference/testing.py
___________________________________________________________________
Added: svn:keywords
   + Id Rev Date
Added: svn:eol-style
   + native

Added: z3c.preference/branches/icemac-dev/src/z3c/preference/tests.py
===================================================================
--- z3c.preference/branches/icemac-dev/src/z3c/preference/tests.py	                        (rev 0)
+++ z3c.preference/branches/icemac-dev/src/z3c/preference/tests.py	2010-07-08 18:47:34 UTC (rev 114353)
@@ -0,0 +1,22 @@
+##############################################################################
+#
+# Copyright (c) 2010 Zope Foundation 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.
+#
+##############################################################################
+
+import doctest
+import z3c.preference.testing
+
+
+def test_suite():
+    suite = doctest.DocFileSuite('README.txt')
+    suite.layer = z3c.preference.testing.Layer
+    return suite


Property changes on: z3c.preference/branches/icemac-dev/src/z3c/preference/tests.py
___________________________________________________________________
Added: svn:keywords
   + Id Rev Date
Added: svn:eol-style
   + native



More information about the checkins mailing list