You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by hb...@apache.org on 2015/09/15 09:02:42 UTC

svn commit: r1703113 - /comdev/projects.apache.org/scripts/import/parsecommittees.py

Author: hboutemy
Date: Tue Sep 15 07:02:41 2015
New Revision: 1703113

URL: http://svn.apache.org/r1703113
Log:
less verbose output

Modified:
    comdev/projects.apache.org/scripts/import/parsecommittees.py

Modified: comdev/projects.apache.org/scripts/import/parsecommittees.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/scripts/import/parsecommittees.py?rev=1703113&r1=1703112&r2=1703113&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/import/parsecommittees.py (original)
+++ comdev/projects.apache.org/scripts/import/parsecommittees.py Tue Sep 15 07:02:41 2015
@@ -92,6 +92,7 @@ with open("../../data/committees.xml", "
     xmldoc = minidom.parseString(f.read())
     f.close()
 itemlist = xmldoc.getElementsByTagName('location')
+print("Copying PMC DOAP files to doap/<committeeId>/pmc-doap.rdf...")
 for s in itemlist :
     url = s.childNodes[0].data
     try:
@@ -130,7 +131,6 @@ for s in itemlist :
             mode = "w"
         else:
             mode = "wb"
-        print("\tCopying PMC DOAP to doap/%s/pmc-doap.rdf..." % committeeId)
         with open("../../site/doap/%s/pmc-doap.rdf" % committeeId, mode) as f:
             f.write(rdf)
             f.close()
@@ -198,6 +198,7 @@ committeesMap = {}
 addedCommittees = []
 c = {}
 
+print("Writing generated doap/<committeeId>/pmc.rdf...")
 for pmc in re.findall(r"\* .+?\s+\(est\. [0-9/]+[^\r\n]+", cidata):
 
     #print(pmc)
@@ -292,7 +293,6 @@ for pmc in re.findall(r"\* .+?\s+\(est\.
             doap_chair_person = ET.SubElement(doap_chair, 'foaf:Person')
             ET.SubElement(doap_chair_person, 'foaf:nick').text = committee['chair']
             ET.SubElement(doap_chair_person, 'foaf:name').text = people[committee['chair']]['name']
-            print("Writing doap/%s/pmc.rdf..." % committeeId)
             directory = "../../site/doap/%s" % committeeId
             if not os.path.exists(directory):
                 os.makedirs(directory)