community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1703113 - /comdev/projects.apache.org/scripts/import/parsecommittees.py
Date Tue, 15 Sep 2015 07:02:42 GMT
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)



Mime
View raw message