Back to index

plone3  3.1.7
Variables
search Namespace Reference

Variables

tuple ctool = getToolByName(script, 'portal_catalog')
tuple utool = getToolByName(script, 'portal_url')
tuple portal_url = utool()
tuple epoch = DateTime('1970/01/01 00:00:01 GMT')
dictionary options = {}
string target = '%s/search'
tuple kw = context.REQUEST.form.copy()
tuple v = filter(None, v)
tuple items = ctool.searchResults(kw)
tuple batch_obj = Batch(items, 25, b_start, orphan=1)
 length = batch_obj.sequence_length
dictionary summary
tuple navigation = context.getBatchNavigation(batch_obj, target, **kw)

Variable Documentation

tuple search.batch_obj = Batch(items, 25, b_start, orphan=1)

Definition at line 35 of file search.py.

tuple search.ctool = getToolByName(script, 'portal_catalog')

Definition at line 9 of file search.py.

tuple search.epoch = DateTime('1970/01/01 00:00:01 GMT')

Definition at line 12 of file search.py.

list search.items = ctool.searchResults(kw)

Definition at line 34 of file search.py.

tuple search.kw = context.REQUEST.form.copy()

Definition at line 18 of file search.py.

search.length = batch_obj.sequence_length

Definition at line 45 of file search.py.

tuple search.navigation = context.getBatchNavigation(batch_obj, target, **kw)

Definition at line 49 of file search.py.

dictionary search.options = {}

Definition at line 15 of file search.py.

Definition at line 11 of file search.py.

dictionary search.summary
Initial value:
00001 { 'length': length and thousands_commas(length) or '',
00002             'type': (length == 1) and _(u'item') or _(u'items'),
00003             'match': kw.get('SearchableText') }

Definition at line 46 of file search.py.

string search.target = '%s/search'

Definition at line 17 of file search.py.

tuple search.utool = getToolByName(script, 'portal_url')

Definition at line 10 of file search.py.

tuple search.v = filter(None, v)

Definition at line 23 of file search.py.