Products.MightyCal.EventCatalog.Event (version 1.12)
index
/home/zope/lib/python/Products/MightyCal/EventCatalog/Event.py

Event object:  An Event Object defines a particular event in the MightyCal.
The Event's properties contain the values of all of the Fields associated
with the EventType.  The Event class tries to be as close to a Flyweight
as possible, by exporting most of intelligence for restructuring and
creating Events to other classes, in particular EventTypeRegistry.

 
Modules
            
Products.MightyCal.EventCatalog.Const
Dumper
ZODB
os
re
zLOG

 
Classes
            
Products.ZCatalog.CatalogAwareness.CatalogAware
Event(Products.ZCatalog.CatalogAwareness.CatalogAware, Products.MightyCal.SItem.SItem)
Products.MightyCal.SItem.SItem(OFS.SimpleItem.Item, Acquisition.Acquirer, Acquisition.ExplicitAcquirer, OFS.PropertyManager.PropertyManager, Persistence.Persistent, AccessControl.Role.RoleManager)
Event(Products.ZCatalog.CatalogAwareness.CatalogAware, Products.MightyCal.SItem.SItem)

 
class Event
      A simple Zope Item that holds its field values in Properties
 
  
__getitem__(self, key)
# Make an Event object work like a dictionary
__init__(self, eventType, REQUEST=None)
Construct a new instance of a Event.  When a new Event object is created, its EventType is queried for a list of (fieldID, fieldType) tuples describing the fields in the EventType.  For each of these fields, a Property of the appropriate type is added to the Event object.  Having the fields present their values as Properties makes it easier for the Event to make its field content available to the ZCatalog.
_getEventType(self)
# Use acquisition to get a reference to our EventType object
getEditURL(self, REQUEST=None)
Return a URL that will bring this event up in the ZMI edit window
getFieldIds(self)
Fetch the Field Ids in their proper order for this EventType

 
Functions
            
manage_addEvent(container, id)
manage_addEventForm()
# Some dummy external constructors

 
Data
             DATA_ENTRY_HANDLER = 'DataEntryHandler'

DTML_DIR = 'dtml'

EVENT_CATALOG = 'EventCatalog'

EVENT_EDIT_DTML_METHOD = 'event_entry'

EVENT_OBJECT = 'Event'

EVENT_TYPE_REGISTRY = 'EventTypeRegistry'

TEMP_FOLDER = 'TempFolder'

__file__ = '/home/zope/lib/python/Products/MightyCal/EventCatalog/Event.pyc'

__name__ = 'Products.MightyCal.EventCatalog.Event'

__version__ = '$Revision: 1.12 $'

permAddEvent = 'Add Events'

permViewMgmtScreen = 'View management screens'