Changing Digest numbers
![](https://secure.gravatar.com/avatar/e3a7c3d01d08531d60ccd12215a563b8.jpg?s=120&d=mm&r=g)
Hey gang,
In 2.0.x, how do you bump the volume number, and reset the digest number back to 1?
Bob
![](https://secure.gravatar.com/avatar/e3a7c3d01d08531d60ccd12215a563b8.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/e3a7c3d01d08531d60ccd12215a563b8.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/a930430c7f9705b71a65f341c4191a2b.jpg?s=120&d=mm&r=g)
"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