[Mailman-Developers] Topic regexps
Mark Sapiro
msapiro at value.net
Sat Jun 3 06:43:00 CEST 2006
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 <msapiro at value.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
More information about the Mailman-Developers
mailing list