diff options
| author | bwarsaw | 2001-05-01 06:10:56 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-05-01 06:10:56 +0000 |
| commit | 7fdf0fc79e07219e1eaeb0fbd6757eea1fba6e9b (patch) | |
| tree | 55e6d33caad602021150ce12f981ef491ed75974 | |
| parent | 35435dd85be256b2c71f644938bd73a3db178b65 (diff) | |
| download | mailman-7fdf0fc79e07219e1eaeb0fbd6757eea1fba6e9b.tar.gz mailman-7fdf0fc79e07219e1eaeb0fbd6757eea1fba6e9b.tar.zst mailman-7fdf0fc79e07219e1eaeb0fbd6757eea1fba6e9b.zip | |
main(): MailList objects have grown a bump_digest_volume() method that
encapsulates all the work necessary to bump the digest number. Use
this instead of hacking the list attributes directly.
| -rw-r--r-- | cron/bumpdigests | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cron/bumpdigests b/cron/bumpdigests index 891c68b9e..af51d7cbb 100644 --- a/cron/bumpdigests +++ b/cron/bumpdigests @@ -1,6 +1,6 @@ #! /usr/bin/env python # -# Copyright (C) 1998,1999,2000 by the Free Software Foundation, Inc. +# Copyright (C) 1998,1999,2000,2001 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -80,8 +80,7 @@ def main(): except Errors.MMListError, e: usage(1, _('No such list: %(listname)s')) try: - mlist.volume += 1 - mlist.next_digest_number = 1 + mlist.bump_digest_volume() finally: mlist.Save() mlist.Unlock() |
