Products.MightyCal.Search.CriteriaSet (version 1.2)
index
/home/zope/lib/python/Products/MightyCal/Search/CriteriaSet.py

CriteriaSet Class. Contains NamedCriterion objects in a traditional Zope-Folderish container, so
that the NamedCriterion objects can be edited.  In addition, its getQueryObject() method can take a
set of NamedCriterion IDs and compose a QueryObject that can be submitted to the EventCatalog to
retrieve a set of Events.

 
Modules
            
Dumper
Products.MightyCal.Search.NamedCriterion
os
re
string
sys

 
Classes
            
Products.MightyCal.SFolder.SFolder(OFS.Folder.Folder, Acquisition.ExplicitAcquirer, Acquisition.Acquirer)
CriteriaSet

 
class CriteriaSet
      CriteriaSet Class.  Holds Intermediate stylesheets for a particular Calendar
 
  
__init__(self)
Construct a new instance of CriteriaSet
createNamedCriterion(self, id, title, linkedField, criteriaType)
Creates a new NamedCriterion based on admin input, and stores it as a sub object
deleteNamedCriteria(self, ids, REQUEST=None)
Delete the given list of NamedCriteria from our registry
getCriteriaTypes(self, REQUEST=None)
Return a list of available NamedCriterion types, so the administrator can add new instances
getQueryObject(self, criteria)
Return a ZCatalog QueryObject built out of the NamedCriteria specified in the 'criteria' list
tpValues(self, REQUEST=None)
Return the children stylesheet objects referred to in the current stylesheet collection

 
Data
             COMMON_FIELD_SPECS = ['TitleField', 'EventTimeField', 'DescriptionField', 'SubmitterField']

COMMON_FIELD_TITLE = 'Common Field'

CRITERIA_POLICY = 'Policy for NamedCriterion and related objects'

CRITERIA_SET = 'CriteriaSet'

DATE_RANGE_BEGINNING = 'rangeBeginning'

DATE_RANGE_CRITERIA_SET = 'DateRangeCriteriaSet'

DATE_RANGE_CRITERIA_SET_DESCRIPTION = 'Searches for Events within a range of dates'

DATE_RANGE_END = 'rangeEnd'

DATE_RANGE_NAMED_CRITERION = 'DateRangeNamedCriterion'

DATE_RANGE_SEARCH_WIDGET = 'DateRangeWidget'

DATE_RANGE_SEARCH_WIDGET_TITLE = 'Date Range Search Widget'

DATE_RANGE_USAGE_SPECIFIER = 'range:min:max'

DESCRIPTION_FIELD = 'DescriptionField'

DIALOG_BOX = 'dialogBox'

DTML_DIR = 'dtml'

EDIT_URL = 'editURL'

EVENT_TIME_FIELD = 'EventTimeField'

EVENT_TYPE_ID = 'eventTypeId'

EVENT_TYPE_TITLE = 'eventTypeTitle'

FIELD_SPECS = 'fieldSpecs'

FIELD_SPEC_ID = 'fieldSpecId'

FIELD_SPEC_TITLE = 'fieldSpecTitle'

ID_ATTRIBUTE = 'id'

INFO = 0

KEYWORD_SEARCH_WIDGET = 'KeywordWidgetImpl'

KEYWORD_SEARCH_WIDGET_NAME = 'Keyword Search Widget'

LABEL_ATTRIBUTE = 'label'

LIST_FIELD_SEARCH_WIDGET = 'ListFieldWidgetImpl'

LIST_FIELD_SEARCH_WIDGET_NAME = 'List Field Search Widget'

MessageDialog = <HTML instance at 82c28f8>

NAMED_CRITERION_OBJECT = 'NamedCriterion'

PACKAGE_NAME = 'Search'

PRODUCT_NAME = 'MightyCal'

RANGE_SUFFIX = '_ranges'

SIMPLE_CRITERIA_SET = 'SimpleCriteriaSet'

SIMPLE_CRITERIA_SET_DESCRIPTION = 'Performs a match against a single field'

SIMPLE_NAMED_CRITERION_OBJECT = 'SimpleNamedCriterion'

SPECIFIED_CRITERIA_SEARCH_WIDGET = 'SpecifiedCriteriaWidgetImpl'

SPECIFIED_CRITERIA_SEARCH_WIDGET_NAME = 'Specified Criteria Search Widget'

SUBMITTER_FIELD = 'SubmitterField'

THIS_CALENDAR_CRITERION_TITLE = 'Selects Events Approved for this Calendar'

THIS_MONTH_CRITERION_ID = 'ThisMonth'

THIS_MONTH_CRITERION_TITLE = "Selects This Month's Events"

THIS_WEEK_CRITERION_ID = 'ThisWeek'

THIS_WEEK_CRITERION_TITLE = "Selects This Week's Events"

TITLE_FIELD = 'TitleField'

TODAY_CRITERION_ID = 'Today'

TODAY_CRITERION_TITLE = "Selects only Today's Events"

UNAPPROVED_EVENTS_CRITERION_ID = 'UnapprovedEvents'

UNAPPROVED_EVENTS_CRITERION_TITLE = 'Selects Unapproved Events for this Calendar'

UPCOMING_EVENTS_CRITERION_ID = 'UpcomingEvents'

UPCOMING_EVENTS_CRITERION_TITLE = 'Selects All Upcoming Events'

USAGE_SUFFIX = '_usage'

WIDGET_DEFINITION_TAG = 'search-widget-definition'

WIDGET_FIELD_BINDING = 'Widget Field Binding'

WIDGET_ID = 'widgetId'

WIDGET_ID_TAG = 'widget-id'

WIDGET_ITEMS_TAG = 'widget-items'

WIDGET_ITEM_TAG = 'widget-item'

WIDGET_LABEL = 'widgetLabel'

WIDGET_LABEL_TAG = 'widget-label'

WIDGET_TYPE = 'Widget Type'

WIDGET_TYPES_INFO = {'KeywordWidgetImpl': 'Keyword Search Widget', 'ListFieldWidgetImpl': 'List Field Search Widget', 'SpecifiedCriteriaWidgetImpl': 'Specified Criteria Search Widget'}

WIDGET_VALUES = 'Widget Values'

__file__ = '/home/zope/lib/python/Products/MightyCal/Search/CriteriaSet.pyc'

__name__ = 'Products.MightyCal.Search.CriteriaSet'

__version__ = '$Revision: 1.2 $'

permAdministerCalendar = 'Administer Calendar'

permDelObjs = 'Delete objects'

permViewMgmtScreen = 'View management screens'