[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/workflow/stateful/browser/ Make use of new "Content Types" vocabulary.

Stephan Richter srichter at cosmos.phy.tufts.edu
Sun May 23 10:13:30 EDT 2004


Log message for revision 24905:
Make use of new "Content Types" vocabulary.



-=-
Modified: Zope3/trunk/src/zope/app/workflow/stateful/browser/contentworkflow.py
===================================================================
--- Zope3/trunk/src/zope/app/workflow/stateful/browser/contentworkflow.py	2004-05-23 14:13:04 UTC (rev 24904)
+++ Zope3/trunk/src/zope/app/workflow/stateful/browser/contentworkflow.py	2004-05-23 14:13:30 UTC (rev 24905)
@@ -37,12 +37,12 @@
 class IContentProcessMapping(Interface):
 
     iface = List(
-        title=u"Content Interface",
+        title=u"Content Type Interface",
         description=u"Specifies the interfaces that characterizes a particular "
                     u"content type. Feel free to select several at "
                     u"once.", 
         required=True,
-        value_type=Choice(vocabulary="Interfaces")        
+        value_type=Choice(vocabulary="Content Types")
         )
     
     name = List(

Modified: Zope3/trunk/src/zope/app/workflow/stateful/browser/ftests/test_contentworkflowsmanager.py
===================================================================
--- Zope3/trunk/src/zope/app/workflow/stateful/browser/ftests/test_contentworkflowsmanager.py	2004-05-23 14:13:04 UTC (rev 24904)
+++ Zope3/trunk/src/zope/app/workflow/stateful/browser/ftests/test_contentworkflowsmanager.py	2004-05-23 14:13:30 UTC (rev 24905)
@@ -98,18 +98,18 @@
         self.assertEqual(response.getStatus(), 200)
         body = ' '.join(response.getBody().split())
         self.assert_(body.find(
-            '<option value="zope.app.workflow.stateful.interfaces.IState">'
+            '<option value="zope.app.folder.interfaces.IFolder">'
             ) >= 0)        
         self.assert_(body.find(
-            '<option value="zope.app.workflow.stateful.interfaces.ITransition">'
+            '<option value="zope.app.file.interfaces.IFile">'
             ) >= 0)        
 
         response = self.publish(
             self.basepath + '/mgr/registry.html',
             basic='mgr:mgrpw',
             form={
-            'field.iface':['zope.app.workflow.stateful.interfaces.IState',
-                           'zope.app.workflow.stateful.interfaces.ITransition'],
+            'field.iface':['zope.app.folder.interfaces.IFolder',
+                           'zope.app.file.interfaces.IFile'],
             'field.name':['dummy-definition'],
             'ADD':'Add'
             })
@@ -121,26 +121,25 @@
 
         self.assert_(nameToInterface(
             None,
-            'zope.app.workflow.stateful.interfaces.IState'
+            'zope.app.folder.interfaces.IFolder'
             ) in ifaces)
         self.assert_(nameToInterface(
             None,
-            'zope.app.workflow.stateful.interfaces.ITransition'
+            'zope.app.file.interfaces.IFile'
             ) in ifaces)
-        self.assertEqual(len(ifaces),2)
+        self.assertEqual(len(ifaces), 2)
 
         response = self.publish(
             self.basepath + '/mgr/registry.html',
             basic='mgr:mgrpw',
             form={
-            'mappings':
-            ['dummy-definition:zope.app.workflow.stateful.interfaces.IState',
-             'dummy-definition:zope.app.workflow.stateful.interfaces.ITransition'],
+            'mappings': ['dummy-definition:zope.app.folder.interfaces.IFolder',
+                         'dummy-definition:zope.app.file.interfaces.IFile'],
             'REMOVE':''
             })
 
         ifaces = mgr.getInterfacesForProcessName('dummy-definition')
-        self.assertEqual(len(ifaces),0)
+        self.assertEqual(len(ifaces), 0)
 
 def test_suite():
     return unittest.makeSuite(Test)




More information about the Zope3-Checkins mailing list