Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes | Static Private Attributes
ATContentTypes.criteria.reference.ATReferenceCriterion Class Reference
Inheritance diagram for ATContentTypes.criteria.reference.ATReferenceCriterion:
Inheritance graph
Collaboration diagram for ATContentTypes.criteria.reference.ATReferenceCriterion:
Collaboration graph

List of all members.

Public Member Functions

def getCurrentValues

Static Public Attributes

tuple security = ClassSecurityInfo()
string meta_type = 'ATReferenceCriterion'
string archetype_name = 'Reference Criterion'
string shortDesc = 'Select referenced content'

Static Private Attributes

tuple __implements__ = ATSelectionCriterion.__implements__+(IATTopicSearchCriterion, )

Detailed Description

A reference criterion

Definition at line 38 of file

Member Function Documentation

Definition at line 48 of file

00049     def getCurrentValues(self):
00050         catalog = getToolByName(self, 'portal_catalog')
00051         uid_cat = getToolByName(self, 'uid_catalog')
00052         putils = getToolByName(self, 'plone_utils')
00053         options = catalog.uniqueValuesFor(self.Field())
00055         brains = uid_cat(UID=options, sort_on='Title')
00056         display = [((putils.pretty_title_or_id(b)).lower(), b.UID, b.Title or for b in brains]
00057         display.sort()
00058         display_list = DisplayList([(d[1], d[2]) for d in display])
00060         return display_list
00062 registerCriterion(ATReferenceCriterion, REFERENCE_INDICES)

Here is the call graph for this function:

Member Data Documentation

tuple ATContentTypes.criteria.reference.ATReferenceCriterion.__implements__ = ATSelectionCriterion.__implements__+(IATTopicSearchCriterion, ) [static, private]

Definition at line 41 of file

Definition at line 44 of file

Definition at line 43 of file

Definition at line 42 of file

string ATContentTypes.criteria.reference.ATReferenceCriterion.shortDesc = 'Select referenced content' [static]

Definition at line 45 of file

The documentation for this class was generated from the following file: