[csw-devel] SF.net SVN: opencsw:[383] utilities/site_links.py

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Tue Jul 12 15:24:17 CEST 2011


Revision: 383
          http://opencsw.svn.sourceforge.net/opencsw/?rev=383&view=rev
Author:   wahwah
Date:     2011-07-12 13:24:17 +0000 (Tue, 12 Jul 2011)

Log Message:
-----------
site-links: Not always print missing links

The property can be set to False.

Modified Paths:
--------------
    utilities/site_links.py

Modified: utilities/site_links.py
===================================================================
--- utilities/site_links.py	2011-07-12 13:24:05 UTC (rev 382)
+++ utilities/site_links.py	2011-07-12 13:24:17 UTC (rev 383)
@@ -89,7 +89,11 @@
                     self.sites_by_url[url] = site
         # Indexed by tuples of links.
         self.links = {}
+        self.print_missing = False
 
+    def SetPrintMissing(self, print_missing):
+        self.print_missing = print_missing
+
     def AddLink(self, site_from, site_to, text):
         site_pair = (site_from, site_to)
         logging.debug("Adding %s to self.links", site_pair)
@@ -147,7 +151,8 @@
                           args, rc)
         else:
             print "Please see out.png"
-        print "\n".join(self.MissingLinks())
+        if self.print_missing:
+          print "\n".join(self.MissingLinks())
 
     def EmitDot(self):
         s = []


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