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
[legend]
Collaboration diagram for ATContentTypes.criteria.currentauthor.ATCurrentAuthorCriterion:
Collaboration graph
[legend]

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 currentauthor.py.


Member Function Documentation

Definition at line 49 of file currentauthor.py.

00049 
00050     def getCriteriaItems(self):
00051         result = []
00052 
00053         user = getToolByName(self, 'portal_membership').getAuthenticatedMember().getId()
00054 
00055         if user is not '':
00056             result.append((self.Field(), user))
00057 
00058         return tuple( result )
00059 
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 currentauthor.py.

Definition at line 45 of file currentauthor.py.

Definition at line 44 of file currentauthor.py.

Definition at line 43 of file currentauthor.py.

Definition at line 42 of file currentauthor.py.

Definition at line 46 of file currentauthor.py.


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