Mark Sapiro wrote: > >I think the thing to do with existing topics is the following: > > >--- versions.py (revision 7905) >+++ versions.py (working copy) >@@ -307,6 +307,16 @@ > pass > else: > l.digest_members[k] = 0 >+ # >+ # Convert pre 2.2 topics regexps whice were compiled in verbose mode >+ # to a single line, non-verbose equivalent. >+ # >+ if stored_state.data_version <= 97 and hasattr(stored_state, 'topics')\ >+ and stored_state.topics: >+ l.topics = [] >+ for name, pattern, description, emptyflag in stored_state.topics: >+ pattern = Utils.strip_verbose_pattern(pattern) >+ l.topics.append((name, pattern, description, emptyflag))
Testing reveals the above patch is not correct because stored_state is a dictionary, not a list instance, but the logic is correct. -- Mark Sapiro <[EMAIL PROTECTED]> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan _______________________________________________ Mailman-Developers mailing list [email protected] http://mail.python.org/mailman/listinfo/mailman-developers Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-developers%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-developers/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp
