EventCal

EventCal project is a calendar class that allows events to be managed and output to HTML in daily, weekly, and monthly views.
Download

EventCal Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Price:
  • FREE
  • Publisher Name:
  • OMouse
  • Publisher web site:
  • http://code.google.com/p/eventcal/

EventCal Tags


EventCal Description

EventCal project is a calendar class that allows events to be managed and output to HTML in daily, weekly, and monthly views. EventCal project is a calendar class that allows events to be managed and output to HTML in daily, weekly, and monthly views.Classesclass CalendarMethods defined here: __init__(self, language='en')Creates an empty event list and sets the languageadd(self, event)cell(self, type='free', s='')dayview(self, day, month=1, year=2007, smallify=False)Generates a two-column table for the specific day with one column holding the hours and the other holding any eventseventlist(self)Generates an unordered list with all events listedmonthview(self, month=1, year=2007, smallify=False)setlang(self, language)Sets the months and week day names to the appropriate languageweekview(self, day, month=1, year=2007, smallify=False) class EventEvents are only specific down to the hour. start and length are hours. Methods defined here: __cmp__(self, other)Comparison method. Returns true if the day, month and year match__init__(self, message, start, length, day, month, year)__repr__(self) Functions am_pm(x)Convert 24hour integer to 12hour string i.e. 13 becomes 1pmgeteventdayname(event)interval(startHour, length)Returns a string: startHour(am/pm) to startHour+length(am/pm). 12 noon is replaced with 'noon'shiftday(day)Shifts from Sun-Sat to Mon-Suntoday(smallify=False)weekday(day, month, year)Returns the day of the week from 0-6 starting from Monday Data daynames = mdays = months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'DecemberWhat's New in This Release:· Unicode fixes.· A proper setup.py file and generated setup packages were added.


EventCal Related Software