[CMF-checkins] CVS: CMF/CMFCollector/Extensions - webtext_migration.py:1.5

Yvo Schubbe y.2004_ at wcm-solutions.de
Tue Sep 14 15:02:51 EDT 2004


Update of /cvs-repository/CMF/CMFCollector/Extensions
In directory cvs.zope.org:/tmp/cvs-serv2613/CMFCollector/Extensions

Modified Files:
	webtext_migration.py 
Log Message:
Merged yuppie-post_1_5-cleanup-branch:
- removed a lot of deprecated code
- made CMFCollector work with CMF 1.4 *and* HEAD


=== CMF/CMFCollector/Extensions/webtext_migration.py 1.4 => 1.5 ===
--- CMF/CMFCollector/Extensions/webtext_migration.py:1.4	Tue Dec 11 18:46:48 2001
+++ CMF/CMFCollector/Extensions/webtext_migration.py	Tue Sep 14 15:02:20 2004
@@ -42,7 +42,8 @@
 def collector_webtext_migration(self):
     """Migrate old CMF "Document" based transcripts to "WebTextDocument"."""
     total_changed = 0
-    issues = self.objectValues(spec="CMF Collector Issue")
+    _filter = { 'portal_type': ('Collector Issue',) }
+    issues = self.objectValues(filter=_filter)
     for issue in issues:
         transcript = issue.get_transcript()
         was_p_mtime = transcript._p_mtime



More information about the CMF-checkins mailing list