#!/usr/bin/python from cgilib import * cgitb.enable() #root = os.path.dirname(os.getcwd()) #-------------------------------------------------------------------- print 'Content-Type: text/html' print '' print '' print '''
Office: EM Building, room 425, Phone: 04-9086429
Email: samyz.ort.braude@gmail.com
Skype: samyz.ort.braude
SLOT | Day | Date | Time | Comment | Reserved To ''' # --------------------------------------------------------------------------- db, seplines = appsched_read(appfile) for slot in sorted(db.keys()): rec = db[slot] name = cgi.escape(rec.get('name', 20*' ')) comment = cgi.escape(rec.get('comment', 10*' ')) print ' |
%d | %s | %s | %s | %s | %s' \ % (slot, rec['day'], rec['date'], rec['time'], comment, name) if slot in seplines: print ' |
' print ' |