Products.MightyCal.DataEntry.DataEntryHandler (version 1.18)
index
/home/zope/lib/python/Products/MightyCal/DataEntry/DataEntryHandler.py

DataEntryHandler object:  A facade interface for entering and editing Events in the MightyCal.
It provides methods for getting a new DataEntryTransaction (which is always the first step in
entering a new Event or editing an existing one), for getting data entry widgets, and for
submitting the user's form data.

 
Modules
            
Dumper
os
sys

 
Classes
            
exceptions.Exception
XMLRPCException
Products.MightyCal.SFolder.SFolder(OFS.Folder.Folder, Acquisition.ExplicitAcquirer, Acquisition.Acquirer)
DataEntryHandler

 
class DataEntryHandler
      A class that holds the field structure of a user-defined DataEntryTransaction type
 
  
__init__(self)
DataEntryHandler constructor
cancel(self, REQUEST=None)
Returns the user to the EventCatalog listing in the ZMI
getDataEntryTransaction(self, userAgent, eventType, eventId=None, dtId=None, REQUEST=None)
Create a DataEntryTransaction for the given Event and user-agent combination.  The event type is needed in case the event ID is null, which signifies that we are creating a new Event
getFieldIds(self, transId)
Fetch a list of the widget fields we need to generate for the given DataEntryTransaction
getWidget(self, transId, fieldId)
Return a widget for the given field
manage_main(self, REQUEST=None)
Return a simple error message
submit(self, dtId, REQUEST=None)
Attempt to complete the DataEntryTransaction using the data given in the "params" parameter.  Returns True if successful, otherwise False.
transactionHasErrors(self, transId)
Returns true if the indicated DataEntryTransaction has been found to have validation errors.
xmlRPCEntryPoint(self, params)
A single entry point for XMLRPC calls; figures out the requested command, performs it, then returns the results in a form interpretable by the calling routine. Signals status by using special XMLRPC error codes, as found in Const.py

 
class XMLRPCException
      # Enables us to pass error information back to an XMLRPC client
 
  
__init__(self, value)
__str__(self)

 
Functions
            
manage_addDataEntryHandler(container, id)
Add an EventTypeRegistry to a Folderish object
manage_addDataEntryHandlerForm()
# Not available via ZMI

 
Data
             CHECKBOX_WIDGET = 'CheckboxWidget'

COCOON_HTML_WIDGET_MAKER = 'CocoonHTMLWidgetMaker'

COMMAND_PARAM = 'command'

DATA_ENTRY_HANDLER = 'DataEntryHandler'

DATA_ENTRY_TRANSACTION = 'DataEntryTransaction'

DATE_WIDGET = 'DateWidget'

DTML_DIR = 'dtml'

EDITOR_SEPARATOR_CELL_CLASS = 'event-edit-separator-cell'

EDITOR_TITLE_CELL_CLASS = 'event-edit-title-cell'

EDITOR_VALUE_CELL_CLASS = 'event-edit-value-cell'

EVENT_CATALOG = 'EventCatalog'

EVENT_EDIT_DTML_METHOD = 'event_entry'

EVENT_ID_PARAM = 'eventId'

EVENT_TYPE_PARAM = 'eventType'

EVENT_TYPE_REGISTRY = 'EventTypeRegistry'

FALSE = 0

FIELD_ID_PARAM = 'fieldId'

FIELD_VALUE_PARAM = 'fieldValue'

GET_FIELD_IDS_COMMAND = 'get-field-ids'

GET_HIDDEN_INPUT_COMMAND = 'get-hidden-input'

GET_TRANSACTION_COMMAND = 'get-transaction'

GET_WIDGET_COMMAND = 'get-widget'

INFO = 0

LABEL_FIELD = 'label'

LIST_WIDGET = 'ListWidget'

MEMO_WIDGET = 'MemoWidget'

MessageDialog = <HTML instance at 82c28f8>

NEW_EVENT_ID = 'newEvent'

PROP_EDITORS = 'PropEditors'

RADIO_WIDGET = 'RadioWidget'

RESULT_BAD_COMMAND_ERROR = '501'

RESULT_INTERNAL_ERROR = '500'

RESULT_OK = '200'

RESULT_PERMISSION_ERROR = '300'

RESULT_STATUS_SLOT = 'status'

RESULT_VALIDATION_ERROR = '400'

RESULT_VALUE_SLOT = 'return-value'

SELECT_WIDGET = 'SelectWidget'

STYLE_BASE = 'StyleBase'

STYLE_FOR_ERROR = 'StyleForError'

SUBMIT_TRANSACTION_COMMAND = 'submit'

TEMP_FOLDER = 'TempFolder'

TEXT_WIDGET = 'TextWidget'

TRANSACTION_ID_PARAM = 'transId'

TRUE = 1

TR_TAG = 'tr'

USER_AGENT_PARAM = 'user-agent'

VALUE_FIELD = 'value'

WIDGET_MAKER_BASE = 'WidgetMaker'

ZOPE_WIDGET_MAKER = 'ZopeWidgetMaker'

__file__ = '/home/zope/lib/python/Products/MightyCal/DataEntry/DataEntryHandler.pyc'

__name__ = 'Products.MightyCal.DataEntry.DataEntryHandler'

__version__ = '$Revision: 1.18 $'

permAddEvent = 'Add Events'

permViewMgmtScreen = 'View management screens'

permXMLRPCAccess = 'XMLRPC Access'