Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes | Static Private Attributes
CMFTopic.SimpleStringCriterion.SimpleStringCriterion Class Reference
Inheritance diagram for CMFTopic.SimpleStringCriterion.SimpleStringCriterion:
Inheritance graph
[legend]
Collaboration diagram for CMFTopic.SimpleStringCriterion.SimpleStringCriterion:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def getEditForm
def edit
def getCriteriaItems

Public Attributes

 id
 field
 value

Static Public Attributes

string meta_type = 'String Criterion'
tuple security = ClassSecurityInfo()

Static Private Attributes

 __implements__ = z2ICriterion
tuple _editableAttributes = ( 'value', )

Detailed Description

Represent a simple field-match for a string value.

Definition at line 30 of file SimpleStringCriterion.py.


Constructor & Destructor Documentation

Definition at line 44 of file SimpleStringCriterion.py.

00044 
00045     def __init__(self, id, field):
00046         self.id = id
00047         self.field = field
00048         self.value = ''


Member Function Documentation

    Update the value we are to match up against.

Definition at line 57 of file SimpleStringCriterion.py.

00057 
00058     def edit( self, value ):
00059         """
00060             Update the value we are to match up against.
00061         """
00062         self.value = str( value )

Here is the caller graph for this function:

    Return a sequence of criteria items, used by Topic.buildQuery.

Definition at line 64 of file SimpleStringCriterion.py.

00064 
00065     def getCriteriaItems( self ):
00066         """
00067             Return a sequence of criteria items, used by Topic.buildQuery.
00068         """
00069         result = []
00070 
00071         if self.value is not '':
00072             result.append( ( self.field, self.value ) )
00073 
00074         return tuple( result )
00075 
00076 InitializeClass( SimpleStringCriterion )
00077 
00078 # Register as a criteria type with the Topic class
00079 Topic._criteriaTypes.append( SimpleStringCriterion )
    Return the skinned name of the edit form.

Definition at line 50 of file SimpleStringCriterion.py.

00050 
00051     def getEditForm( self ):
00052         """
00053             Return the skinned name of the edit form.
00054         """
00055         return 'ssc_edit'


Member Data Documentation

Definition at line 36 of file SimpleStringCriterion.py.

Definition at line 42 of file SimpleStringCriterion.py.

Definition at line 46 of file SimpleStringCriterion.py.

Definition at line 45 of file SimpleStringCriterion.py.

Definition at line 38 of file SimpleStringCriterion.py.

Definition at line 40 of file SimpleStringCriterion.py.

Definition at line 47 of file SimpleStringCriterion.py.


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