[zopeorg-checkins] CVS: Products/ZopeOrg/Extensions - synchronizeSkeleton.py:1.24

Martijn Pieters mj at zope.com
Thu Jan 31 14:55:19 EST 2002


Update of /cvs-zopeorg/Products/ZopeOrg/Extensions
In directory cvs.zope.org:/tmp/cvs-serv21625/Extensions

Modified Files:
	synchronizeSkeleton.py 
Log Message:
Fix typo in Jobs board desc; get images published on sync.


=== Products/ZopeOrg/Extensions/synchronizeSkeleton.py 1.23 => 1.24 ===
         if f_ext in IMAGE_EXTENSIONS:
             container_obj.invokeFactory( id=f_name, type_name='Image', file=f_data )
+            obj = getattr(container_obj, f_name)
+            wf_tool = getattr(container_obj, 'portal_workflow')
+            wf_objs = wf_tool.getWorkflowsFor(obj)
+            for wf_obj in wf_objs:
+                wf_obj.setReviewStateOf(ob=obj
+                                      , review_state='published'
+                                      , action='publish'
+                                      , comment=''
+                                       )
         elif f_ext == '.ps' or f_ext == '.py':
             py_obj = PythonScript( id=f_name )
             py_obj.write( f_data )





More information about the zopeorg-checkins mailing list