[wiki] wiki-lenny -> wiki
darcs-hash:20090427173001-bd074-51c7f6aea2843640e34adc0921b478f40ea98609.gz
This commit is contained in:
parent
5f26116790
commit
cd037bbbe9
31 changed files with 0 additions and 0 deletions
16
wiki/macro/ShowCategories.py
Normal file
16
wiki/macro/ShowCategories.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# SHOWCATEGORIES.PY--
|
||||
#
|
||||
# Copyright (C) 2008 Antoine Durand-Gasselin
|
||||
# Author: Antoine Durand-Gasselin <adg@crans.org>
|
||||
#
|
||||
|
||||
def execute (macro, text):
|
||||
f = macro.formatter
|
||||
code = [f.heading(1,2), "Liste des liens", f.heading(0,2)]
|
||||
code += macro.request.page.getPageLinks(macro.request)
|
||||
code += [f.heading(1,2), u"Liste des Catégories", f.heading(0,2)]
|
||||
code += macro.request.page.getCategories(macro.request)
|
||||
|
||||
return "\n".join(code)
|
Loading…
Add table
Add a link
Reference in a new issue