Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- #/home/cpcmonster/bin/MASCmeetings.py
- # Released under a GPLv3 Licence by Clockwork PC 2011
- # www.clockworkpc.com.au
- # You are entitled to the following four freedoms:
- # Freedom 0: To run this program for any purpose
- # Freedom 1: To study how this program works and change it to make it do what you wish
- # Freedom 2: To redistribute copies so you can help your neighbour
- # Freedom 3: To distribute copies of your modified version to others
- import os
- #Rhett's Gatherings
- nameRhett = "Rhett (or Sharni)"
- timeRhett = "10:30-12:00 March 12 2012"
- dayRhett = "every second Monday"
- #Rowena's Gatherings
- nameRowena = "Rowena"
- timeRowena = "10:30-12:00 March 14 2012"
- dayRowena = "every fourth Wednesday"
- #Sandra's Gatherings
- nameSandra = "Sandra"
- timeSandra = "12:00-14:00 March 16 2012"
- daySandra = "every fourth Friday"
- #Jayne's Gatherings
- nameJayne1 = "Jayne"
- timeJayne1 = "13:00-15:00 March 20 2012"
- dayJayne1 = "every fourth Tuesday"
- nameJayne2 = "Jayne"
- timeJayne2 = "11:30-12:30 April 5 2012"
- dayJayne2 = "every fourth Thursday"
- #Belinda's Gatherings
- nameBelinda1 = "Belinda"
- timeBelinda1 = "11:00-12:00 March 22 2012"
- dayBelinda1 = "every fourth Thursday"
- nameBelinda2 = "Belinda"
- timeBelinda2 = "12:00-14:00 March 30 2012"
- dayBelinda2 = "every fourth Friday"
- #Sharni's Gatherings
- nameSharni1 = "Sharni"
- timeSharni1 = "13:00-15:00 April 3 2012"
- daySharni1 = "every fourth Tuesday"
- nameSharni2 = "Sharni"
- timeSharni2 = "12:00-14:00 March 28 2012"
- daySharni2 = "every fourth Wednesday"
- #Line Details
- lineIntro = "MASC Gathering with "
- lineRepeat = "for 11 weeks"
- lineLocation = "at The Learning Space"
- #Generate lines for googlcl
- print ""
- lineRhett = lineIntro + nameRhett + " " + lineLocation + " " + timeRhett + " " + lineRepeat + " " + dayRhett
- print lineRhett
- print ""
- lineRowena = lineIntro + nameRowena + " " + lineLocation + " " + timeRowena + " " + lineRepeat + " " + dayRowena
- print lineRowena
- print ""
- lineSandra = lineIntro + nameSandra + " " + lineLocation + " " + timeSandra + " " + lineRepeat + " " + daySandra
- print lineSandra
- print ""
- lineJayne1 = lineIntro + nameJayne1 + " " + lineLocation + " " + timeJayne1 + " " + lineRepeat + " " + dayJayne1
- print lineJayne1
- print ""
- lineJayne2 = lineIntro + nameJayne2 + " " + lineLocation + " " + timeJayne2 + " " + lineRepeat + " " + dayJayne2
- print lineJayne2
- print ""
- lineBelinda1 = lineIntro + nameBelinda1 + " " + lineLocation + " " + timeBelinda1 + " " + lineRepeat + " " + dayBelinda1
- print lineBelinda1
- print ""
- lineBelinda2 = lineIntro + nameBelinda2 + " " + lineLocation + " " + timeBelinda2 + " " + lineRepeat + " " + dayBelinda2
- print lineBelinda2
- print ""
- lineSharni1 = lineIntro + nameSharni1 + " " + lineLocation + " " + timeSharni1 + " " + lineRepeat + " " + daySharni1
- print lineSharni1
- print ""
- lineSharni2 = lineIntro + nameSharni2 + " " + lineLocation + " " + timeSharni2 + " " + lineRepeat + " " + daySharni2
- print lineSharni2
- print ""
- #Create calendars in Google Calender using googlcl
- os.system("google calendar add " + '"' + lineRhett +'"')
- os.system("google calendar add " + '"' + lineRowena +'"')
- os.system("google calendar add " + '"' + lineSandra +'"')
- os.system("google calendar add " + '"' + lineJayne1 +'"')
- os.system("google calendar add " + '"' + lineJayne2 +'"')
- os.system("google calendar add " + '"' + lineBelinda1 +'"')
- os.system("google calendar add " + '"' + lineBelinda2 +'"')
- os.system("google calendar add " + '"' + lineSharni1 +'"')
- os.system("google calendar add " + '"' + lineSharni2 +'"')
Add Comment
Please, Sign In to add comment