You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by rb...@apache.org on 2015/05/29 17:57:55 UTC

svn commit: r1682510 - /comdev/tools/get_meetups

Author: rbowen
Date: Fri May 29 15:57:55 2015
New Revision: 1682510

URL: http://svn.apache.org/r1682510
Log:
Put this in mdtext format for direct publication via the CMS.

Modified:
    comdev/tools/get_meetups

Modified: comdev/tools/get_meetups
URL: http://svn.apache.org/viewvc/comdev/tools/get_meetups?rev=1682510&r1=1682509&r2=1682510&view=diff
==============================================================================
--- comdev/tools/get_meetups (original)
+++ comdev/tools/get_meetups Fri May 29 15:57:55 2015
@@ -11,8 +11,7 @@ import re
 #
 # Produces three files containing possible Apache-related meetups. One
 # is formatted to paste onto a mailing list. One is suggested tweets.
-# One is for pasting into a Mediawiki Wiki, and so will need to
-# be modified for use at the ASF.
+# One is for pasting into apache.org/events/meetups.mdtext
 #
 # Note that these are POSSIBLY Apache-related. Typically, there's around
 # a 50% false positive rate, what with hiking trails, native American
@@ -89,7 +88,7 @@ twoweeklater = (nowts * 1000 ) + ( twowe
 
 tweets = open('meetups.tweets', 'w')
 mlist = open('meetups.mlist', 'w')
-wiki = open('meetups.wiki', 'w')
+website = open('meetups.mdtext', 'w')
 
 # Standard intro to mailing list post
 mlist.write( '''The following are the meetups I'm aware of in the coming week where
@@ -121,12 +120,12 @@ for meetup in meetups:
     # Group information ...
     grp = grp_deets[ meetup['group']['id'] ]
 
-    # For the wiki ...
-    eventout = "* " + t + ' [' + meetup['event_url'] + ' ' + meetup['name'] + "], " + grp['city'] + ', '
+    # For the website ...
+    eventout = "* " + t + ' [' + meetup['name'] + '](' + meetup['event_url'] + "), " + grp['city'] + ', '
     if 'state' in grp.keys():
         eventout = eventout + grp['state'] + ', '
     eventout = eventout + grp['country'] + "\n"
-    wiki.write( str(eventout) )
+    website.write( str(eventout) )
 
     # For everything else, a week is enough
     if eventts > weeklater:
@@ -149,7 +148,7 @@ for meetup in meetups:
 # Barn door
 tweets.close()
 mlist.close()
-wiki.close()
+website.close()
 
 print "Done!\n"