4
4
# Copyright (c) 2007 Mike (mosburger) Desjardins <desjardinsmike@gmail.com>
6
# This is an implementation of the google plugin for a calendar applet for
6
# This is an implementation of the google plugin for a calendar applet for
7
7
# Avant Window Navigator.
9
9
# This library is free software; you can redistribute it and/or
21
21
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22
22
# Boston, MA 02111-1307, USA.
25
from StringIO import StringIO
37
requires_login = False
39
def __init__(self, applet):
42
def get_appointments(self, day, url):
44
cmd = 'find ~/.evolution/calendar/local/* -name "*.ics" -print' # Assumes UNIX.
45
for file in os.popen(cmd).readlines(): # run find command
46
name = file[:-1] # strip '\n'
48
calendar = icscal.IcsCal(self.applet,filelist)
49
return calendar.get_appointments(day,url)
51
def open_integrated_calendar(self, when, url):
52
dat = "%02d%02d%02d" % (when[0], (when[1]+1), when[2])
53
subprocess.Popen('evolution calendar:///?startdate='+dat+'T120000', shell=True)
31
requires_login = False
33
def __init__(self, applet):
36
def get_appointments(self, day, url):
39
cmd = 'find ~/.evolution/calendar/local/* -name "*.ics" -print'
40
for file in os.popen(cmd).readlines(): # run find command
41
name = file[:-1] # strip '\n'
43
calendar = icscal.IcsCal(self.applet, filelist)
44
return calendar.get_appointments(day, url)
46
def open_integrated_calendar(self, when, url):
47
dat = "%02d%02d%02d" % (when[0], (when[1] + 1), when[2])
48
subprocess.Popen('evolution calendar:///?startdate=%sT120000' % dat,