macro::AllTutorialsSorted Namespace Reference

Classes

class  Node
class  StackInfo

Functions

def formatContext
def getStackInfo
def macro_AllTutorialsSorted
def noSortResults
def pageListWithContext
def search_box
def sortResults
def topoSort
def visit

Variables

list Dependencies = ["pages"]
list stack_list = []

Function Documentation

def macro::AllTutorialsSorted::formatContext (   self,
  macro,
  page,
  context,
  maxlines 
)
Format search context for each matched page

Try to show first maxlines interesting matches context.

Definition at line 337 of file AllTutorialsSorted.py.

def macro::AllTutorialsSorted::getStackInfo (   self,
  macro,
  request,
  formatter,
  info = 1,
  context = 180,
  maxlines = 1,
  paging = True,
  hitsFrom = 0,
  hitsInfo = 0 
)

Definition at line 104 of file AllTutorialsSorted.py.

def macro::AllTutorialsSorted::macro_AllTutorialsSorted (   macro,
  needle 
)

Definition at line 381 of file AllTutorialsSorted.py.

def macro::AllTutorialsSorted::noSortResults (   display_results  ) 

Definition at line 317 of file AllTutorialsSorted.py.

def macro::AllTutorialsSorted::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 115 of file AllTutorialsSorted.py.

def macro::AllTutorialsSorted::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 42 of file AllTutorialsSorted.py.

def macro::AllTutorialsSorted::sortResults (   display_results  ) 

Definition at line 324 of file AllTutorialsSorted.py.

def macro::AllTutorialsSorted::topoSort (   dependencies  ) 

Definition at line 277 of file AllTutorialsSorted.py.

def macro::AllTutorialsSorted::visit (   dependencies,
  terminals,
  dependency,
  list,
  dead 
)

Definition at line 301 of file AllTutorialsSorted.py.


Variable Documentation

Definition at line 39 of file AllTutorialsSorted.py.

Definition at line 102 of file AllTutorialsSorted.py.

 All Classes Namespaces Files Functions Variables


roswiki
Author(s): Kenneth Conley
autogenerated on Thu Jan 3 09:41:38 2013