[CMF-checkins] CVS: CMF - CHANGES.txt:1.43.4.1 all_cmf_tests.py:1.2.20.1

Shane Hathaway shane@cvs.zope.org
Wed, 20 Feb 2002 15:15:20 -0500


Update of /cvs-repository/CMF
In directory cvs.zope.org:/tmp/cvs-serv27999

Modified Files:
      Tag: cmf-pre-1_3-branch
	CHANGES.txt all_cmf_tests.py 
Log Message:
Merged changes from head, with a small change: the types tool does not need
to be extended in such a complex way.  I took out the type_type registry and
the __bobo_traverse__ hook and replaced it with the original code with only
minor mods that give you the same extensibility without all the hacking.
(If anyone actually wants to use the extensibility, which I suspect no one
is actually interested in doing, I will happily provide instructions and
will create a corrected unit test.)


=== CMF/CHANGES.txt 1.43 => 1.43.4.1 ===
 
+  - Tweaked folder_factories so that the types listed 
+    are only those where the user has the 
+    'Access contents information' permission on the 
+    Type Information object associated with that 
+    type.
+
+  - Added the ability to limit what types of object an
+    object of a given Portal Type can be created in. 
+
+    If 'Implicity Addable' is set (the default), then 
+    objects of that Type can be added anywhere.
+
+    If it is not set, then objects of that Type can only be 
+    added to objects whose Type's allowed_content_types
+    contains the Type.
+
   - (__future__) Exposed role management for manager users on
       the default roster:  managers can now "promote" members
       without going to the ZMI.
 
   - (__future__) Added "custom schema" mechanism for content
-    objetcts:  site managers can now define additional
+    objects:  site managers can now define additional
     propertysheets for a content type, which will then be
     reflected in instances created from the type.
 
@@ -29,6 +45,41 @@
       workflows) to the core set of CMF products.
 
 Bugs Fixed
+
+  - Allowed the ActionsTool to gracefully handle objects
+    which return ActionInformation objects. Thanks to 
+    Andy Dawkins for the analysis. (Tracker #457)
+
+  - Made workflow Expressions use the correct ModuleImporter
+    so that they operate correctly in their restricted 
+    environment. Thanks to Dieter Maurer for the patch.
+    (Tracker 463)
+
+  - Fixed incorrent permissions in "pending" state of default 
+    DCWorkflows. Thanks for Lynn Walton for the report and 
+    Florent Guillaume for the patch. (Tracker #464)
+
+  - Fixed missing comma that affected manager permission to modify
+    in the published state. Thanks to Florent Guillaume for the 
+    patch (Tracker #459)
+
+  - html_quote'd errors raised by FSPageTemplates. Thanks to 
+    Dieter Maurer for the patch. (Tracker #462)
+
+  - Fixed typo in zpt_stylesheet.css. Thanks to Florent Guillaume
+    for the patch. (Tracker #461)
+
+  - Fixed long standing bug in FSPythonScript where get_size returned
+    the incorrect length. This broke editing using EMACS via FTP or
+    WebDAV. Thanks to John Glavin at South River Technologies for
+    help finding the bug.
+
+  - Reworked functionality added in Tracker #409 which broke the 
+    Types Tool. (Tracker #458)
+
+  - Fixed bug whereby DirectoryView instances were not noticing
+    some of the changes they should when Zope was running in debug mode
+    on Windows (Tracker #305)
 
   - Fixed a bug where the workflow notifyCreated method was called during
     manage_afterAdd in PortalContent, making it possible for the


=== CMF/all_cmf_tests.py 1.2 => 1.2.20.1 ===
-import unittest
+from unittest import TestSuite,main
+from Products.CMFCore.tests.base.utils import build_test_suite
 
-from Products.CMFCore.tests import test_all
-core_tests = test_all
+def test_suite():    
 
-from Products.CMFDefault.tests import test_all
-default_tests = test_all
-
-from Products.CMFTopic.tests import test_all
-topic_tests = test_all
-
-try:
-    from Products.CMFCalendar.tests import test_all
-    calendar_tests = test_all
-except ImportError:
-    calendar_tests = None
-
-try:
-    from Products.CMFDecor.tests import test_all
-    decor_tests = test_all
-except ImportError:
-    decor_tests = None
-
-try:
-    from Products.DCWorfklow.tests import test_all
-    workflow_tests = test_all
-except ImportError:
-    workflow_tests = None
-
-
-
-def test_suite():
-
-    suite = unittest.TestSuite()
-
-    suite.addTest( core_tests.test_suite() )
-    suite.addTest( default_tests.test_suite() )
-    suite.addTest( topic_tests.test_suite() )
-
-    if calendar_tests:
-        suite.addTest( calendar_tests.test_suite() )
-
-    if decor_tests:
-        suite.addTest( decor_tests.test_suite() )
-
-    if workflow_tests:
-        suite.addTest( workflow_tests.test_suite() )
-
-    return suite
-
-def run():
-    if hasattr( unittest, 'JUnitTextTestRunner' ):
-        unittest.JUnitTextTestRunner().run( test_suite() )
-    else:
-        unittest.TextTestRunner( verbosity=1 ).run( test_suite() )
+    return TestSuite((
+        build_test_suite('Products.CMFCore.tests',['test_all']),
+        build_test_suite('Products.CMFDefault.tests',['test_all']),
+        build_test_suite('Products.CMFTopic.tests',['test_all']),
+        build_test_suite('Products.CMFCalendar.tests',['test_all'],required=0),
+        build_test_suite('Products.CMFDecor.tests',['test_all'],required=0),
+        build_test_suite('Products.DCWorkflow.tests',['test_all'],required=0),
+        ))
 
 if __name__ == '__main__':
-    run()
+    main(defaultTest='test_suite')