~ubuntu-branches/ubuntu/natty/moin/natty-updates

« back to all changes in this revision

Viewing changes to MoinMoin/action/LocalSiteMap.py

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2008-06-22 21:17:13 UTC
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: james.westby@ubuntu.com-20080622211713-inlv5k4eifxckelr
ImportĀ upstreamĀ versionĀ 1.7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
def execute(pagename, request):
33
33
    _ = request.getText
 
34
    request.emit_http_headers()
34
35
 
35
36
    # This action generate data using the user language
36
37
    request.setContentLanguage(request.lang)
68
69
        """
69
70
        if not name:
70
71
            return
71
 
        _ = request.getText
72
72
        pg = Page(request, name)
73
73
        action = __name__.split('.')[-1]
74
74
        self.append(' ' * (5*depth+1))
75
75
        self.append(pg.link_to(request, querystr={'action': action}))
76
76
        self.append("&nbsp;<small>[")
77
 
        self.append(pg.link_to(request, _('view')))
 
77
        self.append(pg.link_to(request, 'view'))
78
78
        self.append("</small>]<br>")
79
79
 
80
80
    def append(self, text):