
* text_latex.py --- un formatter latex qui marche (appelé avec ?mimetype=text/latex) * ShowCategories.py --- une macro qui affiche les liens et les catégories de la page courante. * theme/crans{,-www}.py --- Les deux thèmes officiels et supportés * formatter.*.orig.py --- Ajout des fichiers originaux darcs-hash:20081212044713-bd074-f8123fa455b4e2b0f082159d492274a8b4aa4ec5.gz
16 lines
480 B
Python
16 lines
480 B
Python
# -*- 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)
|