Back to index

plone3  3.1.7
Classes | Functions | Variables
CMFCalendar.Event Namespace Reference

Classes

class  Event

Functions

def addEvent
def _dateStrings

Variables

tuple EventFactory = Factory(Event)

Function Documentation

def CMFCalendar.Event._dateStrings (   when) [private]

Definition at line 76 of file Event.py.

00076 
00077 def _dateStrings( when ):
00078 
00079     strings = {}
00080 
00081     if when is not None:
00082         strings[ 'year' ]   = str( when.year() )
00083         strings[ 'month' ]  = str( when.month() )
00084         strings[ 'day' ]    = str( when.day() )
00085     else:
00086         strings[ 'year' ]   = ''
00087         strings[ 'month' ]  = ''
00088         strings[ 'day' ]    = ''
00089 
00090     return strings
00091 

Here is the caller graph for this function:

def CMFCalendar.Event.addEvent (   self,
  id,
  title = '',
  description = '',
  effective_date = None,
  expiration_date = None,
  start_date = None,
  end_date = None,
  location = '',
  contact_name = '',
  contact_email = '',
  contact_phone = '',
  event_url = '',
  REQUEST = None 
)
Create an empty event.

Definition at line 58 of file Event.py.

00058 
00059             ):
00060     """Create an empty event.
00061     """
00062     event = Event( id
00063                  , title
00064                  , description
00065                  , effective_date
00066                  , expiration_date
00067                  , start_date
00068                  , end_date
00069                  , location
00070                  , contact_name
00071                  , contact_email
00072                  , contact_phone
00073                  , event_url
00074                  )
00075     self._setObject(id, event)


Variable Documentation

Definition at line 424 of file Event.py.