Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Properties Class Reference
Inheritance diagram for
Inheritance graph
Collaboration diagram for
Collaboration graph

List of all members.

Public Member Functions

def __init__
def get_enable_livesearch
def set_enable_livesearch
def get_types_not_searched
def set_types_not_searched

Public Attributes



 enable_livesearch = property(get_enable_livesearch, set_enable_livesearch)

Detailed Description

Definition at line 45 of file

Constructor & Destructor Documentation

Definition at line 50 of file

00051     def __init__(self, context):
00052         super(SearchControlPanelAdapter, self).__init__(context)
00053         pprop = getToolByName(context, 'portal_properties')
00054         self.context = pprop.site_properties
00055         self.jstool = getToolByName(context, 'portal_javascripts')
00056         self.ttool = getToolByName(context, 'portal_types')

Here is the call graph for this function:

Here is the caller graph for this function:

Member Function Documentation

Definition at line 57 of file

00058     def get_enable_livesearch(self):
00059         return self.context.enable_livesearch

Definition at line 71 of file

00072     def get_types_not_searched(self):
00073         return [t for t in self.ttool.listContentTypes()
00074                         if t not in self.context.types_not_searched and
00075                            t not in BAD_TYPES]

Definition at line 60 of file

00061     def set_enable_livesearch(self, value):
00062         if value:
00063             self.context.manage_changeProperties(enable_livesearch=True)
00064             self.jstool.getResource('livesearch.js').setEnabled(True)
00065         else:
00066             self.context.manage_changeProperties(enable_livesearch=False)
00067             self.jstool.getResource('livesearch.js').setEnabled(False)
00068         self.jstool.cookResources()

Definition at line 76 of file

00077     def set_types_not_searched(self, value):
00078         value = [t for t in self.ttool.listContentTypes() if t not in value
00079                    and t not in BAD_TYPES]
00080         self.context._updateProperty('types_not_searched', value)

Member Data Documentation

Definition at line 53 of file

Definition at line 54 of file

Definition at line 55 of file

Property Documentation

Definition at line 69 of file

Initial value:

Definition at line 82 of file

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