Products.MightyCal.EventType.ContentTypes (version 1.18)
index
/home/zope/lib/python/Products/MightyCal/EventType/ContentTypes.py

ContentType definitions for the MightyCal product.
* ContentTypes are the most basic building block for FieldSpecs.  A FieldSpec can be comprised of a
  BasicContentType, which contains a single DataType, or else it can be comprised of a composite
  ContentType object, which may be comprised of multiple ContentTypes itself.
* ContentType objects are supposed to implement the 'Composite' design pattern, which ensures that
  a FieldSpec that is comprised of a simple ContentType behaves the same way as a FieldSpec that
  is comprised of a ContentTypes that has many levels of subsidiary objects.
* Even though ContentTypes are not intended to be callable directly from the Web, their methods are still
  declared to be private using security.declarePrivate(), to prevent hackers from trying to modify
  backend data by cleverly constructed HTTP requests to objects that aren't accessible from the normal
  user interface.

 
Modules
            
Products.MightyCal.EventType.ContentTypes
Products.MightyCal.EventType.DataTypes
Dumper

 
Classes
            
Products.ZCatalog.CatalogAwareness.CatalogAware
AbstractContentType(Products.MightyCal.SFolder.SFolder, Products.ZCatalog.CatalogAwareness.CatalogAware)
ActionContentType
BasicContentType
ResourceContentType
exceptions.Exception
NotCompositeException
Products.MightyCal.SFolder.SFolder(OFS.Folder.Folder, Acquisition.ExplicitAcquirer, Acquisition.Acquirer)
AbstractContentType(Products.MightyCal.SFolder.SFolder, Products.ZCatalog.CatalogAwareness.CatalogAware)
ActionContentType
BasicContentType
ResourceContentType

 
class AbstractContentType
      A base class for other ContentType objects
 
  
applyFormat(self, value, formatString)
Given a string value and a format string, return the value rewritten according to the format string.  The format strings are standard C-style format strings.  The default behavior is to turn the string into a Python-native value, then call the DataType's asString method.
asString(self, value, formatString=None)
Stringify the value according the given format string, or if the format string is not supplied, by the default format string for the DataType of the value.
getContentTypeEditor(self)
Return a default HTML table that will provide a simple editor for a ContentType
getPropertyValue(self, event)
For simple content types, just fetch the single property we manage
getSearchWidgetInfo(self)
Return a dictionary of info about the recommended search widget for this FieldSpec.
populateEventSnapshot(self, snapshot, fieldTitle)
Given an EventSnapshot (or DataEntryTransaction), add field slots for each piece of information that will need to eventually be stored in the Event object
setDataRangeProvider(self, provider)
Tell the DataType to change its default value provider
setDefaultValueProvider(self, provider)
Tell the DataType to change its default value provider
setPublic(self, propValue)
Set whether the ContentType (and its embedded DataType(s)) are to be visible to ordinary (i.e. non-administrative) users
setupIndexes(self, REQUEST)
Tell the DataType object to index itself according to the FieldTypes IndexedField property
updateInternalSpecification(self, specInfo, REQUEST)
validateDataEntryTransaction(self, trans)
For each field managed by the ContentType, check the DataEntryTransaction to see if it is field is valid, and set a flag for each field indicating its validation status.  Also stores a validation message if a field fails validation

 
class ActionContentType
      Defines an action linked to parent event
 
  
__init__(self)

 
class BasicContentType
      Is the default Content Type
 
  
__init__(self, dataType=None, propId=None)
_destroy(self)
A cleanup routine called whenever a ContentType needs to be gotten rid of
_index(self)
Record this object in the ZCatalog, and requests its children to do the same
getTemplateText(self, templateId)
Return MTL text for the given Template.

 
class NotCompositeException
      # Indicates that an attempt was made to get a list of subfields from a # ContentType that is not a composite
 
  
__init__(self, value)
__str__(self)

 
class ResourceContentType
      Holds info about a non-shareable resource
 
  
__init__(self)

 
Data
             ACTION_CONTENT_TYPE = 'ActionContentType'

ADD_EVENT_TYPE_METHOD = 'addEventType'

APPROVED_CALENDARS_FIELD = 'ApprovedCalendarField'

BASE_REGEXP_DATA_RANGE_PROVIDER = 'BaseRegexpDataRangeProvider'

BASIC_CONTENT_TYPE = 'BasicContentType'

BOOLEAN_DATA_TYPE = 'BooleanDataType'

BOX_CHECKED = 'on'

CALENDAR_DATA_RANGE_PROVIDER = 'CalendarDataRangeProvider'

CALENDAR_DATA_TYPE = 'CalendarDataType'

CALENDAR_DEFAULT_VALUE_PROVIDER = 'CalendarDefaultValueProvider'

CALENDAR_OWNER = 'calendarOwner'

CONTENT_TYPES = 'ContentTypes'

CUSTOMIZABLE_REGEXP_DATA_RANGE_PROVIDER = 'CustomizableRegexpDataRangeProvider'

DATA_RANGE_PROVIDER = 'DataRangeProvider'

DATA_RANGE_PROVIDERS = 'DataRangeProviders'

DATA_TYPES = 'DataTypes'

DATE_TIME_DATA_TYPE = 'DateTimeDataType'

DEFAULT_BOOLEAN_FORMAT = 'T'

DEFAULT_DATE_FORMAT = '%m/%d/%y %I:%M %p'

DEFAULT_INTEGER_FORMAT = '%d'

DEFAULT_STRING_FORMAT = '%s'

DEFAULT_VALUE_PROVIDER = 'DefaultValueProvider'

DEFAULT_VALUE_PROVIDERS = 'DefaultValueProviders'

DESCRIPTION_FIELD = 'DescriptionField'

DESCRIPTION_PROPERTY = 'description'

DISPLAY_TEMPLATE = 'StandardDisplay'

EMPTY_LIST_DEFAULT_VALUE_PROVIDER = 'EmptyListDefaultValueProvider'

EVENT_CATALOG = 'EventCatalog'

EVENT_DETAIL_TEMPLATE = 'EventDetail'

EVENT_EDITOR_TEMPLATE = 'EventEditor'

EVENT_TIME_FIELD = 'EventTimeField'

EVENT_TYPE_OWNER = 'eventTypeOwner'

FALSE = 0

FIELD_COMMENT = 'fieldComment'

FIELD_TITLE = 'fieldTitle'

IMMUTABLE_FIELD = 'ImmutableField'

INDEXED_FIELD = 'IndexedField'

INFO = 0

INTEGER_DATA_TYPE = 'IntegerDataType'

LOGGED_IN_USER_DEFAULT_VALUE_PROVIDER = 'LoggedInUserDefaultValueProvider'

MANDATORY_FIELD = 'MandatoryField'

MEMO_DATA_TYPE = 'MemoDataType'

MULTI_VALUE_DATA_TYPE = 'MultiValueDataType'

NAME = 'name'

NOW_DATE_TIME_DEFAULT_VALUE_PROVIDER = 'NowDateTimeDefaultValueProvider'

NUMERIC_RANGE_DATA_RANGE_PROVIDER = 'NumericRangeDataRangeProvider'

OBJECT_CATALOG = 'ObjectCatalog'

ONE_LINE_DISPLAY_TEMPLATE = 'SingleLineDisplay'

PUBLIC_FIELD = 'PublicField'

RANGE_LIST_CONTENTS = 'rangeListContents'

REQUESTED_CALENDARS_FIELD = 'RequestedCalendarField'

RESOURCE_CONTENT_TYPE = 'ResourceContentType'

SIMPLE_BOOLEAN_DEFAULT_VALUE_PROVIDER = 'SimpleBooleanDefaultValueProvider'

SIMPLE_INTEGER_DEFAULT_VALUE_PROVIDER = 'SimpleIntegerDefaultValueProvider'

SIMPLE_LIST_DATA_RANGE_PROVIDER = 'SimpleListDataRangeProvider'

SIMPLE_LIST_DEFAULT_VALUE_PROVIDER = 'SimpleListDefaultValueProvider'

SIMPLE_STRING_DEFAULT_VALUE_PROVIDER = 'SimpleStringDefaultValueProvider'

SIMPLISTIC_DATA_RANGE_PROVIDER = 'SimplisticDataRangeProvider'

SIMPLISTIC_STRING_DATA_RANGE_PROVIDER = 'SimplisticStringDataRangeProvider'

SPECIFIED_DEFAULT_VALUED = 'specifiedDefaultValue'

STRING_DATA_TYPE = 'StringDataType'

SUBMITTER_FIELD = 'SubmitterField'

TELEPHONE_NUMBER_DATA_RANGE_PROVIDER = 'TelephoneNumberDataRangeProvider'

TEMP_FOLDER = 'TempFolder'

TITLE_FIELD = 'TitleField'

TITLE_ONLY_DISPLAY_TEMPLATE = 'TitleOnlyDisplay'

TRUE = 1

USER_DATA_RANGE_PROVIDER = 'UserDataRangeProvider'

USER_DATA_TYPE = 'UserDataType'

__file__ = '/home/zope/lib/python/Products/MightyCal/EventType/ContentTypes.pyc'

__name__ = 'Products.MightyCal.EventType.ContentTypes'

__version__ = '$Revision: 1.18 $'

permAddEvent = 'Add Events'