[CMF-checkins] CVS: CMF/CMFCollector/skins/collector - collector_edit.py:1.5

Ken Manheimer klm@zope.com
Fri, 26 Oct 2001 19:54:23 -0400


Update of /cvs-repository/CMF/CMFCollector/skins/collector
In directory cvs.zope.org:/tmp/cvs-serv4635

Modified Files:
	collector_edit.py 
Log Message:
Implementing assignable collector managers, and "dispatching" mode,
where only the managers receive issue update notifications outside of
the consultation phase (ie, when assigned supporters are consulting
with the requester).  See http://new.zope.org/Members/klm/ColDev/26
for details.


=== CMF/CMFCollector/skins/collector/collector_edit.py 1.4 => 1.5 ===
-##parameters=title, description, email, abbrev, supporters, topics, classifications, importances, version_info_spiel
+##parameters=title, description, email, abbrev, managers, supporters, dispatching, topics, classifications, importances, version_info_spiel
 ##title=Configure Collector
  
 from Products.PythonScripts.standard import url_quote_plus
 
-changed = context.edit(title=title,
+changes = context.edit(title=title,
                        description=description,
                        abbrev=abbrev,
                        email=email,
+                       managers=managers,
                        supporters=supporters,
+                       dispatching=dispatching,
                        topics=topics,
                        classifications=classifications,
                        importances=importances,
                        version_info_spiel=version_info_spiel)
 
-if changed:
-    changes = "Configuration changed"
-else:
+if not changes:
     changes = "No configuration changes"
+else:
+    changes = "Changed: " + changes
 
 if context.REQUEST.get('recatalog', None):
     context.reinstate_catalog()
-    changes = changes + ", reindexed"
+    changes = changes + ", Reinstated catalog"
 
 msg = '?portal_status_message=%s.' % url_quote_plus(changes)
  
-context.REQUEST.RESPONSE.redirect(context.absolute_url() + msg)
+context.REQUEST.RESPONSE.redirect("%s/%s%s"
+                                  % (context.absolute_url(),
+                                     "collector_edit_form",
+                                     msg))