6 months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
7 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
9 print '<table width="100%">'
10 def row(*cells, **kw):
11 td = kw.get('tr','td')
14 print ' <%s>%s</%s>' % (td,cell,td)
16 row('Estimated date', 'Type', 'Comments', tr = 'th')
20 else: f = open('schedule')
24 if line[0] == '#': continue # comment
26 date,current = line[1:].strip().split(None, 1)
27 now = datetime.date(*tuple([int(i) for i in date.split('-')]))
30 incr,type,desc = line[1:].strip().split(None,2)
31 now = now + datetime.timedelta(int(incr))
33 print 'dunna understand code', line[0]
35 #name = current + '.d' + str(now).replace('-','')
36 date = '%s-%s-%s' % (now.day,months[now.month-1],now.year)
42 category = current = type
43 row(date, category, desc)
48 # indent-tabs-mode:nil
50 # vim: set expandtab tabstop=4 shiftwidth=4: