[csw-devel] SF.net SVN: gar:[13179] csw/mgar/gar/v2/lib/python/catalog_notifier.py

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Wed Feb 2 18:33:30 CET 2011


Revision: 13179
          http://gar.svn.sourceforge.net/gar/?rev=13179&view=rev
Author:   wahwah
Date:     2011-02-02 17:33:30 +0000 (Wed, 02 Feb 2011)

Log Message:
-----------
catalog-notifier: A bugfix for whitelist handling

When there's no whitelist defined, it should send messages to everyone.

Modified Paths:
--------------
    csw/mgar/gar/v2/lib/python/catalog_notifier.py

Modified: csw/mgar/gar/v2/lib/python/catalog_notifier.py
===================================================================
--- csw/mgar/gar/v2/lib/python/catalog_notifier.py	2011-02-02 16:01:20 UTC (rev 13178)
+++ csw/mgar/gar/v2/lib/python/catalog_notifier.py	2011-02-02 17:33:30 UTC (rev 13179)
@@ -257,7 +257,8 @@
   for email in notifications:
     if options.send_notifications:
       logging.debug("email: %s", repr(email))
-      if email not in whitelist: continue
+      if whitelist and email not in whitelist:
+        continue
       logging.debug("Sending.")
       msg = MIMEText(notifications[email])
       msg["Subject"] = "OpenCSW catalog update report"


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list