[Checkins] SVN: zc.table/trunk/ More complete setup.py, small text fixes

Marius Gedminas cvs-admin at zope.org
Thu Mar 29 13:49:47 UTC 2012


Log message for revision 124792:
  More complete setup.py, small text fixes
  
  

Changed:
  U   zc.table/trunk/CHANGES.txt
  U   zc.table/trunk/README.txt
  U   zc.table/trunk/setup.py
  U   zc.table/trunk/src/zc/table/README.txt
  U   zc.table/trunk/src/zc/table/fieldcolumn.txt

-=-
Modified: zc.table/trunk/CHANGES.txt
===================================================================
--- zc.table/trunk/CHANGES.txt	2012-03-29 13:41:02 UTC (rev 124791)
+++ zc.table/trunk/CHANGES.txt	2012-03-29 13:49:43 UTC (rev 124792)
@@ -7,19 +7,17 @@
 - Using Python's ``doctest`` module instead of deprecated
   ``zope.testing.doctest``.
 
-- Removed deprecated slugs for ZPKG and ZCML.
-
 - Removed dependency on ``zope.app.testing`` and ``zope.app.form``.
 
-- Move ``zope.testing`` to test extra.
+- Add test extra, move ``zope.testing`` to it.
 
 
 0.8.1 (2010-05-25)
 ------------------
 
-- replaced html entities with unicode entities since they are xthml valid.
-  [fRiSi]
+- Replaced html entities with unicode entities since they are xthml valid.
 
+
 0.8.0 (2009-07-23)
 ------------------
 

Modified: zc.table/trunk/README.txt
===================================================================
--- zc.table/trunk/README.txt	2012-03-29 13:41:02 UTC (rev 124791)
+++ zc.table/trunk/README.txt	2012-03-29 13:49:43 UTC (rev 124792)
@@ -1 +1,2 @@
-
+This is a Zope 3 extension that helps with the construction of (HTML) tables.
+Features include dynamic HTML table generation, batching and sorting.

Modified: zc.table/trunk/setup.py
===================================================================
--- zc.table/trunk/setup.py	2012-03-29 13:41:02 UTC (rev 124791)
+++ zc.table/trunk/setup.py	2012-03-29 13:49:43 UTC (rev 124792)
@@ -1,5 +1,24 @@
+##############################################################################
+#
+# Copyright (c) 2006 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 for zc.table package
+"""
+import os
 from setuptools import setup, find_packages
 
+def read(*rnames):
+    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
+
 setup(
     name="zc.table",
     version="0.9.0dev",
@@ -28,12 +47,25 @@
     'zc.table':['resources/*', '*.pt'],
     },
 
-    author='Zope Project',
-    author_email='zope-dev at zope.org',
-    description="This is a Zope 3 extension that helps with the construction of (HTML) tables. Features include dynamic HTML table generation, batching and sorting.",
-    long_description=open("README.txt").read() + '\n\n' + open('CHANGES.txt').read(),
-    license='ZPL',
+    author='Zope Foundation and Contributors',
+    author_email='zope-dev at zope.org',
+    description="Zope table",
+    long_description=(
+        read('README.txt')
+        + '\n\n' +
+        read('CHANGES.txt')
+        ),
+    license='ZPL 2.1',
     keywords="zope zope3",
+    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'],
     zip_safe=False,
-    classifiers = ['Framework :: Zope3'],
     )

Modified: zc.table/trunk/src/zc/table/README.txt
===================================================================
--- zc.table/trunk/src/zc/table/README.txt	2012-03-29 13:41:02 UTC (rev 124791)
+++ zc.table/trunk/src/zc/table/README.txt	2012-03-29 13:49:43 UTC (rev 124792)
@@ -137,7 +137,7 @@
 
 The next optional argument, `prefix=None`, is particularly important when a
 table formatter is used within a form: it sets a prefix for any form fields
-and XML identifiers generated for the table or a contained element::
+and XML identifiers generated for the table or a contained element.
 
 The last optional argument is the full set of columns for the table (not just
 the ones curently visible).  It is optional because it may be set instead as
@@ -613,6 +613,7 @@
 key and "Third" being the secondary key (you can provide more than two if you
 wish). Note that, unlike some of the values examined up to this point, the
 sort columns will only be honored when passed to the class on instanciation.
+
     >>> big_items = items[:]
     >>> big_items.append(DataItem('a1', 'b1', 'c9'))
     >>> big_items.append(DataItem('a1', 'b1', 'c7'))

Modified: zc.table/trunk/src/zc/table/fieldcolumn.txt
===================================================================
--- zc.table/trunk/src/zc/table/fieldcolumn.txt	2012-03-29 13:41:02 UTC (rev 124791)
+++ zc.table/trunk/src/zc/table/fieldcolumn.txt	2012-03-29 13:49:43 UTC (rev 124792)
@@ -1,3 +1,6 @@
+FieldColumn
+===========
+
 The FieldColumn is intended to be a replacement for the FieldEditColumn.  It
 has the following goals.
 
@@ -56,9 +59,9 @@
     ...             title=u'Email Address',
     ...             constraint=re.compile('\w+@\w+([.]\w+)+$').match)
     ...     salutation = schema.Choice(
-    ...		       title=u'Salutation',
-    ...		       values = ['Mr','Ms'],
-    ...		       )
+    ...             title=u'Salutation',
+    ...             values = ['Mr','Ms'],
+    ...             )
 
     >>> class Contact:
     ...     interface.implements(IContact)
@@ -89,7 +92,7 @@
     ...
     >>> columns = (ContactColumn(IContact["name"]),
     ...            ContactColumn(IContact["email"]),
-    ...	           BindingContactColumn(IContact["salutation"])
+    ...            BindingContactColumn(IContact["salutation"])
     ...            )
 
 Now, with this, we can create a table with input widgets.  The columns don't



More information about the checkins mailing list