Changing Digest numbers
Hey gang,
In 2.0.x, how do you bump the volume number, and reset the digest number back to 1?
Bob
DId I miss a message, or was there no reply? How do you change the digest numbers?
Bob
Bob Puff/NLE wrote:
Hey gang,
In 2.0.x, how do you bump the volume number, and reset the digest number back to 1?
Bob
Mailman-Developers mailing list Mailman-Developers@python.org http://mail.python.org/mailman/listinfo/mailman-developers
cron/bumpdigests
Thanks Barry.. how simple can it get? I already did this:
file: upddig.py: def upddig(mlist): print mlist.volume print mlist.next_digest_number mlist.volume = 2 mlist.next_digest_number = 9 mlist.Save()
Then I did: bin/withlist -l -r upddig [listname]
Seems to have taken. Look ok?
Bob
"B" == Bob <bob@nleaudio.com> writes:
>> cron/bumpdigests
B> Thanks Barry.. how simple can it get? I already did this:
| file: upddig.py:
| def upddig(mlist):
| print mlist.volume
| print mlist.next_digest_number
| mlist.volume = 2
| mlist.next_digest_number = 9
| mlist.Save()
| Then I did:
| bin/withlist -l -r upddig [listname]
B> Seems to have taken. Look ok?
Yep. That's a one-off though and geared specifically to your one situation. bumpdigest isn't much more than that + the usual boilerplate + incrementing the values instead of hard coding them.
-Barry
participants (4)
-
barry@zope.com
-
Bob Puff/NLE
-
Bob Puff@NLE
-
Bob@NLE