Classes | |
class | Node |
Functions | |
def | execute |
def | formatContext |
def | pageListWithContext |
def | search_box |
def | sortResults |
def | topoSort |
def | visit |
Variables | |
list | Dependencies = ["pages"] |
def macro::FullSearchWithDescriptions::execute | ( | macro, | ||
needle | ||||
) |
Definition at line 292 of file FullSearchWithDescriptions.py.
def macro::FullSearchWithDescriptions::formatContext | ( | self, | ||
macro, | ||||
page, | ||||
context, | ||||
maxlines | ||||
) |
Format search context for each matched page Try to show first maxlines interesting matches context.
Definition at line 243 of file FullSearchWithDescriptions.py.
def macro::FullSearchWithDescriptions::pageListWithContext | ( | self, | ||
macro, | ||||
request, | ||||
formatter, | ||||
info = 1 , |
||||
context = 180 , |
||||
maxlines = 1 , |
||||
paging = True , |
||||
hitsFrom = 0 , |
||||
hitsInfo = 0 | ||||
) |
Format a list of found pages with context The default parameter values will create Google-like search results, as this is the most known search interface. Good interface is familiar interface, so unless we have much better solution (we don't), being like Google is the way. @param request: current request @param formatter: formatter to use @param info: show match info near the page link @param context: how many characters to show around each match. @param maxlines: how many contexts lines to show. @param paging: toggle paging @param hitsFrom: current position in the hits @param hitsInfo: toggle hits info line @rtype: unicode @return formatted page list with context
Definition at line 87 of file FullSearchWithDescriptions.py.
def macro::FullSearchWithDescriptions::search_box | ( | type, | ||
macro | ||||
) |
Make a search box Make both Title Search and Full Search boxes, according to type. @param type: search box type: 'titlesearch' or 'fullsearch' @rtype: unicode @return: search box html fragment
Definition at line 39 of file FullSearchWithDescriptions.py.
def macro::FullSearchWithDescriptions::sortResults | ( | display_results | ) |
Definition at line 230 of file FullSearchWithDescriptions.py.
def macro::FullSearchWithDescriptions::topoSort | ( | dependencies | ) |
Definition at line 193 of file FullSearchWithDescriptions.py.
def macro::FullSearchWithDescriptions::visit | ( | dependencies, | ||
terminals, | ||||
dependency, | ||||
list, | ||||
dead | ||||
) |
Definition at line 215 of file FullSearchWithDescriptions.py.
list macro::FullSearchWithDescriptions::Dependencies = ["pages"] |
Definition at line 36 of file FullSearchWithDescriptions.py.