Back to index

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

List of all members.

Public Member Functions

def getCriteriaItems

Static Public Attributes

tuple security = ClassSecurityInfo()
 schema = ATCurrentAuthorSchema
string meta_type = 'ATCurrentAuthorCriterion'
string archetype_name = 'Current Author Criterion'
string shortDesc = 'Restrict to current user'

Static Private Attributes

tuple __implements__ = ATBaseCriterion.__implements__+(IATTopicSearchCriterion, )

Detailed Description

A criterion that searches for the currently logged in user's id

Definition at line 38 of file

Member Function Documentation

Definition at line 49 of file

00050     def getCriteriaItems(self):
00051         result = []
00053         user = getToolByName(self, 'portal_membership').getAuthenticatedMember().getId()
00055         if user is not '':
00056             result.append((self.Field(), user))
00058         return tuple( result )
00060 registerCriterion(ATCurrentAuthorCriterion, LIST_INDICES)

Here is the call graph for this function:

Member Data Documentation

tuple ATContentTypes.criteria.currentauthor.ATCurrentAuthorCriterion.__implements__ = ATBaseCriterion.__implements__+(IATTopicSearchCriterion, ) [static, private]

Definition at line 41 of file

Definition at line 45 of file

Definition at line 44 of file

Definition at line 43 of file

Definition at line 42 of file

Definition at line 46 of file

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