From 7fdf0fc79e07219e1eaeb0fbd6757eea1fba6e9b Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Tue, 1 May 2001 06:10:56 +0000 Subject: 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. --- cron/bumpdigests | 5 ++--- 1 file 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() -- cgit v1.2.3-70-g09d2