EventCal iconEventCal 0.43

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.

Classes

class Calendar

Methods defined here:

__init__(self, language='en')
Creates an empty event list and sets the language
add(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 events
eventlist(self)
Generates an unordered list with all events listed
monthview(self, month=1, year=2007, smallify=False)
setlang(self, language)
Sets the months and week day names to the appropriate language
weekview(self, day, month=1, year=2007, smallify=False)

class Event

Events 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 1pm
geteventdayname(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-Sun
today(smallify=False)
weekday(day, month, year)
Returns the day of the week from 0-6 starting from Monday

Data

daynames = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
mdays = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December

What's New in This Release:

· Unicode fixes.
· A proper setup.py file and generated setup packages were added.

last updated on:
September 10th, 2007, 12:35 GMT
price:
FREE!
developed by:
OMouse
license type:
MIT/X Consortium License 
category:
ROOT \ Internet \ HTTP (WWW)

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

1 Screenshot
EventCal

Add your review!

SUBMIT