incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r709676 - in /incubator/public/trunk: clutch.pkl clutch.py site-author/clutch.xml site-publish/clutch.html
Date Sat, 01 Nov 2008 11:28:10 GMT
Author: crossley
Date: Sat Nov  1 04:28:09 2008
New Revision: 709676

URL: http://svn.apache.org/viewvc?rev=709676&view=rev
Log:
Detect certain resources later. Therefore can detect if they have various resour
ce established even if they have no Status file, e.g. Tashi.

Modified:
    incubator/public/trunk/clutch.pkl
    incubator/public/trunk/clutch.py
    incubator/public/trunk/site-author/clutch.xml
    incubator/public/trunk/site-publish/clutch.html

Modified: incubator/public/trunk/clutch.pkl
URL: http://svn.apache.org/viewvc/incubator/public/trunk/clutch.pkl?rev=709676&r1=709675&r2=709676&view=diff
==============================================================================
Binary files - no diff available.

Modified: incubator/public/trunk/clutch.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/clutch.py?rev=709676&r1=709675&r2=709676&view=diff
==============================================================================
--- incubator/public/trunk/clutch.py (original)
+++ incubator/public/trunk/clutch.py Sat Nov  1 04:28:09 2008
@@ -130,7 +130,7 @@
     projects[id]['reportingComments'] = ""
     projects[id]['hasReportingGroup'] = True
     projects[id]['hasStatusEntry'] = True
-    projects[id]['statusFileName'] = ""
+    projects[id]['statusFileName'] = id
     projects[id]['statusLastUpdated'] = ""
     projects[id]['statusAge'] = 0
     projects[id]['statusUpdateCounts'] = ""
@@ -379,7 +379,7 @@
 projectNames = projects.keys()
 projectNames.sort(ignorecasecmp)
 for k in projectNames:
-  #print "Name: %s" % k
+  print k
   try:
     projectsTable[k]
   except KeyError:
@@ -411,18 +411,66 @@
       projects[k]['elapsedDays'] = (gatherDate-entryDate).days
       projects[k]['entryDate'] = entryDate
 
+  # Gather recent updates to their status page.
+  # FIXME: Perhaps this operation could be improved. Use "subprocess" module.
+  # On this older Mac still python-2.3.5, so no. See notes at top.
+  command = "svn log --xml site-author/projects/%s.xml" % \
+      projects[k]['statusFileName']
+  dom = xml.dom.minidom.parseString(commands.getoutput(command))
+  rowCounter = 0
+  count1 = 0
+  count2 = 0
+  count3 = 0
+  for row in dom.getElementsByTagName("logentry"):
+    # Skip counting various commits which were to standardise the status files.
+    matchSvnSkip = re.search(svnRevisionSkipRE, row.getAttribute('revision'))
+    if matchSvnSkip:
+      continue
+    rowCounter += 1
+    date = getText(row.getElementsByTagName("date")[0].childNodes)
+    matchSvn = re.search(statusLogRE, date)
+    thisDate = datetime.datetime(
+        int(matchSvn.group(1)), int(matchSvn.group(2)), int(matchSvn.group(3)))
+    if rowCounter == 1:
+      projects[k]['statusLastUpdated'] = "%(a)4d-%(b)02d-%(c)02d" % \
+          {'a': int(matchSvn.group(1)), 'b': int(matchSvn.group(2)),
+           'c': int(matchSvn.group(3))}
+      projects[k]['statusAge'] = (gatherDate-thisDate).days
+      if projects[k]['statusAge'] == 0:
+        # FIXME: Could be improved
+        projects[k]['statusAge'] += 1 # edited today
+    if thisDate >= statusTallyDate1:
+      count1 += 1
+    if thisDate >= statusTallyDate2:
+      count2 += 1
+    if thisDate >= statusTallyDate3:
+      count3 += 1
+  if projects[k]['entryDate'] >= statusTallyDate1:
+    count2 = "-"
+  if projects[k]['entryDate'] >= statusTallyDate2:
+    count3 = "-"
+  projects[k]['statusUpdateCounts'] = "%(a)s,%(b)s,%(c)s" % \
+      {'a': count1, 'b': count2, 'c': count3}
+
+  dom.unlink()
+
+# end of processing
+
+print "Detect certain resources ..."
+for k in projectNames:
+  print k
+
   # Add the number of committers
   # Sometimes the committer SVN group name contains the sponsor TLP,
   # e.g. portals-wsrp4j
   tlpSvn = ""
   sponsor = projects[k]['sponsor'].lower()
+  if sponsor.find("?") >= 0:
+    sponsor = "incubator"
   if sponsor.find("incubator") == -1:
-    if sponsor.find("?") >= 0:
-      sponsor = ""
-    else:
-      if sponsor.find("logging services") >= 0:
-        sponsor = "logging"
-      tlpSvn = "%(a)s-%(b)s" % {'a': sponsor, 'b': k}
+    if sponsor.find("logging services") >= 0:
+      sponsor = "logging"
+    tlpSvn = "%(a)s-%(b)s" % {'a': sponsor, 'b': k}
   if k.find("lucene.net") >= 0:
     tlpSvn = "lucene-dot-net"
   for svnGroup in [k, tlpSvn]:
@@ -478,6 +526,36 @@
   if not projects[k]['urlTracker']:
     print 'INFO: %s: Does not yet have an Issue Tracker' % k
 
+  # Detect if they have a website yet.
+  # First, try the url from their status page
+  # then, try a standard url.
+  urlWwwDefault = "http://incubator.apache.org/%s/" % projects[k]['statusFileName']
+  if urlWwwDefault == projects[k]['urlWww']:
+    urlWwwDefault = ""
+  for url in [projects[k]['urlWww'], urlWwwDefault]:
+    if url == "":
+      continue
+    try:
+      urllib2.urlopen(url)
+    except IOError:
+      projects[k]['urlWww'] = ""
+    else:
+      projects[k]['urlWww'] = url
+      break
+  if not projects[k]['urlWww']:
+    print 'INFO: %s: Does not yet have a website' % k
+
+  # See if they have a distribution yet.
+  # FIXME: Probably need to instead get info from roberts's "audit" data.
+  url = "http://www.apache.org/dist/incubator/%s/" % \
+      projects[k]['statusFileName']
+  try:
+    urllib2.urlopen(url)
+  except IOError:
+    print 'INFO: %s: Does not yet have a distribution area' % k
+  else:
+    projects[k]['dist'] = url
+
   # Detect mail lists established
   # First, try the list names from their status page
   # then, try a standard list name under incubator.
@@ -537,79 +615,6 @@
       print "INFO: %(a)s: Does not yet have mail list '%(b)s'" % {'a': k, 'b': listName}
   # End of processing project mail lists.
 
-  # Detect if they have a website yet.
-  # First, try the url from their status page
-  # then, try a standard url.
-  urlWwwDefault = "http://incubator.apache.org/%s/" % projects[k]['statusFileName']
-  if urlWwwDefault == projects[k]['urlWww']:
-    urlWwwDefault = ""
-  for url in [projects[k]['urlWww'], urlWwwDefault]:
-    if url == "":
-      continue
-    try:
-      urllib2.urlopen(url)
-    except IOError:
-      projects[k]['urlWww'] = ""
-    else:
-      projects[k]['urlWww'] = url
-      break
-  if not projects[k]['urlWww']:
-    print 'INFO: %s: Does not yet have a website' % k
-
-  # See if they have a distribution yet.
-  # FIXME: Probably need to instead get info from roberts's "audit" data.
-  url = "http://www.apache.org/dist/incubator/%s/" % \
-      projects[k]['statusFileName']
-  try:
-    urllib2.urlopen(url)
-  except IOError:
-    print 'INFO: %s: Does not yet have a distribution area' % k
-  else:
-    projects[k]['dist'] = url
-
-  # Gather recent updates to their status page.
-  # FIXME: Perhaps this operation could be improved. Use "subprocess" module.
-  # On this older Mac still python-2.3.5, so no. See notes at top.
-  command = "svn log --xml site-author/projects/%s.xml" % \
-      projects[k]['statusFileName']
-  dom = xml.dom.minidom.parseString(commands.getoutput(command))
-  rowCounter = 0
-  count1 = 0
-  count2 = 0
-  count3 = 0
-  for row in dom.getElementsByTagName("logentry"):
-    # Skip counting various commits which were to standardise the status files.
-    matchSvnSkip = re.search(svnRevisionSkipRE, row.getAttribute('revision'))
-    if matchSvnSkip:
-      continue
-    rowCounter += 1
-    date = getText(row.getElementsByTagName("date")[0].childNodes)
-    matchSvn = re.search(statusLogRE, date)
-    thisDate = datetime.datetime(
-        int(matchSvn.group(1)), int(matchSvn.group(2)), int(matchSvn.group(3)))
-    if rowCounter == 1:
-      projects[k]['statusLastUpdated'] = "%(a)4d-%(b)02d-%(c)02d" % \
-          {'a': int(matchSvn.group(1)), 'b': int(matchSvn.group(2)),
-           'c': int(matchSvn.group(3))}
-      projects[k]['statusAge'] = (gatherDate-thisDate).days
-      if projects[k]['statusAge'] == 0:
-        # FIXME: Could be improved
-        projects[k]['statusAge'] += 1 # edited today
-    if thisDate >= statusTallyDate1:
-      count1 += 1
-    if thisDate >= statusTallyDate2:
-      count2 += 1
-    if thisDate >= statusTallyDate3:
-      count3 += 1
-  if projects[k]['entryDate'] >= statusTallyDate1:
-    count2 = "-"
-  if projects[k]['entryDate'] >= statusTallyDate2:
-    count3 = "-"
-  projects[k]['statusUpdateCounts'] = "%(a)s,%(b)s,%(c)s" % \
-      {'a': count1, 'b': count2, 'c': count3}
-
-  dom.unlink()
-
 # end of processing
 
 print "Output the data ..."

Modified: incubator/public/trunk/site-author/clutch.xml
URL: http://svn.apache.org/viewvc/incubator/public/trunk/site-author/clutch.xml?rev=709676&r1=709675&r2=709676&view=diff
==============================================================================
--- incubator/public/trunk/site-author/clutch.xml (original)
+++ incubator/public/trunk/site-author/clutch.xml Sat Nov  1 04:28:09 2008
@@ -101,7 +101,7 @@
         </li>
       </ul>
       <p>
-        Clutch last gathered: Sat Nov  1 04:30:48 2008 UTC.<br />
+        Clutch last gathered: Sat Nov  1 11:18:34 2008 UTC.<br />
         Number of podlings in incubation: 35
       </p>
       <table id="clutch">
@@ -705,12 +705,12 @@
           <td></td>
           <td class="issue">0</td>
           <td></td>
-          <td>-</td>
+          <td class="cool1"><a href="http://people.apache.org/~jim/projects.html#tashi">5</a></td>
           <td>0</td>
-          <td>False</td>
-          <td>False</td>
-          <td>False</td>
-          <td>False</td>
+          <td class="cool1"><a href="http://svn.apache.org/repos/asf/incubator/tashi/">True</a></td>
+          <td class="cool1"><a href="http://issues.apache.org/jira/browse/TASHI/">True</a></td>
+          <td class="cool1"><a href="http://mail-archives.apache.org/mod_mbox/incubator-tashi-dev/">True</a></td>
+          <td class="cool1"><a href="http://mail-archives.apache.org/mod_mbox/incubator-tashi-commits/">True</a></td>
           <td>False</td>
           <td>False</td>
         </tr>
@@ -770,11 +770,11 @@
           <td></td>
           <td>-</td>
           <td>0</td>
+          <td class="cool1"><a href="http://svn.apache.org/repos/asf/incubator/triplesoup/">True</a></td>
           <td>False</td>
-          <td>False</td>
-          <td>False</td>
-          <td>False</td>
-          <td>False</td>
+          <td class="cool1"><a href="http://mail-archives.apache.org/mod_mbox/incubator-triplesoup-dev/">True</a></td>
+          <td class="cool1"><a href="http://mail-archives.apache.org/mod_mbox/incubator-triplesoup-commits/">True</a></td>
+          <td class="cool1"><a href="http://incubator.apache.org/triplesoup/">True</a></td>
           <td>False</td>
         </tr>
         <tr>

Modified: incubator/public/trunk/site-publish/clutch.html
URL: http://svn.apache.org/viewvc/incubator/public/trunk/site-publish/clutch.html?rev=709676&r1=709675&r2=709676&view=diff
==============================================================================
--- incubator/public/trunk/site-publish/clutch.html (original)
+++ incubator/public/trunk/site-publish/clutch.html Sat Nov  1 04:28:09 2008
@@ -190,7 +190,7 @@
         </li>
       </ul>
 <p>
-        Clutch last gathered: Sat Nov  1 04:30:48 2008 UTC.<br />
+        Clutch last gathered: Sat Nov  1 11:18:34 2008 UTC.<br />
         Number of podlings in incubation: 35
       </p>
 <table id="clutch" class="colortable" width="100%">
@@ -794,12 +794,12 @@
           <td />
           <td class="issue">0</td>
           <td />
-          <td>-</td>
+          <td class="cool1"><a href="http://people.apache.org/~jim/projects.html#tashi">5</a></td>
           <td>0</td>
-          <td>False</td>
-          <td>False</td>
-          <td>False</td>
-          <td>False</td>
+          <td class="cool1"><a href="http://svn.apache.org/repos/asf/incubator/tashi/">True</a></td>
+          <td class="cool1"><a href="http://issues.apache.org/jira/browse/TASHI/">True</a></td>
+          <td class="cool1"><a href="http://mail-archives.apache.org/mod_mbox/incubator-tashi-dev/">True</a></td>
+          <td class="cool1"><a href="http://mail-archives.apache.org/mod_mbox/incubator-tashi-commits/">True</a></td>
           <td>False</td>
           <td>False</td>
         </tr>
@@ -859,11 +859,11 @@
           <td />
           <td>-</td>
           <td>0</td>
+          <td class="cool1"><a href="http://svn.apache.org/repos/asf/incubator/triplesoup/">True</a></td>
           <td>False</td>
-          <td>False</td>
-          <td>False</td>
-          <td>False</td>
-          <td>False</td>
+          <td class="cool1"><a href="http://mail-archives.apache.org/mod_mbox/incubator-triplesoup-dev/">True</a></td>
+          <td class="cool1"><a href="http://mail-archives.apache.org/mod_mbox/incubator-triplesoup-commits/">True</a></td>
+          <td class="cool1"><a href="http://incubator.apache.org/triplesoup/">True</a></td>
           <td>False</td>
         </tr>
         <tr>



---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message