Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes
MoinMoin.action.LocalSiteMap.LocalSiteMap Class Reference

List of all members.

Public Member Functions

def __init__
def output
def visit
def append

Public Attributes

 name
 result

Detailed Description

Definition at line 50 of file LocalSiteMap.py.


Constructor & Destructor Documentation

Definition at line 51 of file LocalSiteMap.py.

00051 
00052     def __init__(self, name):
00053         self.name = name
00054         self.result = []


Member Function Documentation

Definition at line 80 of file LocalSiteMap.py.

00080 
00081     def append(self, text):
00082         self.result.append(text)
00083 

Here is the caller graph for this function:

def MoinMoin.action.LocalSiteMap.LocalSiteMap.output (   self,
  request 
)

Definition at line 55 of file LocalSiteMap.py.

00055 
00056     def output(self, request):
00057         tree = PageTreeBuilder(request).build_tree(self.name)
00058         #self.append("<small>")
00059         tree.depth_first_visit(request, self)
00060         #self.append("</small>")
00061         return """
00062 <p>
00063 %s
00064 </p>
00065 """ % ''.join(self.result)

def MoinMoin.action.LocalSiteMap.LocalSiteMap.visit (   self,
  request,
  name,
  depth 
)
Visit a page, i.e. create a link.

Definition at line 66 of file LocalSiteMap.py.

00066 
00067     def visit(self, request, name, depth):
00068         """ Visit a page, i.e. create a link.
00069         """
00070         if not name:
00071             return
00072         _ = request.getText
00073         pg = Page(request, name)
00074         action = __name__.split('.')[-1]
00075         self.append('&nbsp;' * (5*depth+1))
00076         self.append(pg.link_to(request, querystr={'action': action}))
00077         self.append("&nbsp;<small>[")
00078         self.append(pg.link_to(request, _('view')))
00079         self.append("</small>]<br>")

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 52 of file LocalSiteMap.py.

Definition at line 53 of file LocalSiteMap.py.


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