From 2cb0e8feccb661dafca4754507580966c4e9932c Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Wed, 27 Feb 2002 00:17:34 +0000 Subject: send_digest_now(): Return a boolean flag specifying whether a digest was sent out or not. This lets the admin page for example, display a nice status message. --- Mailman/Digester.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Mailman/Digester.py') diff --git a/Mailman/Digester.py b/Mailman/Digester.py index 2226efe99..94b3dfd57 100644 --- a/Mailman/Digester.py +++ b/Mailman/Digester.py @@ -1,4 +1,4 @@ -# Copyright (C) 1998,1999,2000,2001 by the Free Software Foundation, Inc. +# Copyright (C) 1998,1999,2000,2001,2002 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 @@ -65,6 +65,8 @@ class Digester: except OSError, e: if e.errno <> errno.ENOENT: raise # List has no outstanding digests + return 0 + return 1 def bump_digest_volume(self): self.volume += 1 -- cgit v1.2.3-70-g09d2