[Checkins] SVN: zope.schema/trunk/ Expose documentation using __all__

Shane Hathaway shane at hathawaymix.org
Mon Feb 2 23:53:51 EST 2009


Log message for revision 96013:
  Expose documentation using __all__
  

Changed:
  U   zope.schema/trunk/CHANGES.txt
  U   zope.schema/trunk/src/zope/schema/__init__.py

-=-
Modified: zope.schema/trunk/CHANGES.txt
===================================================================
--- zope.schema/trunk/CHANGES.txt	2009-02-03 04:52:05 UTC (rev 96012)
+++ zope.schema/trunk/CHANGES.txt	2009-02-03 04:53:51 UTC (rev 96013)
@@ -8,6 +8,8 @@
 - Made validation tests compatible with Python 2.5 again (hopefully not
   breaking Python 2.4)
 
+- Added an __all__ package attribute to expose documentation.
+
 3.5.1 (2009/01/31)
 ------------------
 

Modified: zope.schema/trunk/src/zope/schema/__init__.py
===================================================================
--- zope.schema/trunk/src/zope/schema/__init__.py	2009-02-03 04:52:05 UTC (rev 96012)
+++ zope.schema/trunk/src/zope/schema/__init__.py	2009-02-03 04:53:51 UTC (rev 96013)
@@ -29,3 +29,5 @@
     getValidationErrors, getSchemaValidationErrors)
 from zope.schema.accessors import accessors
 from zope.schema.interfaces import ValidationError
+
+__all__ = tuple(name for name in globals() if not name.startswith('_'))



More information about the Checkins mailing list