the first glue from wiki.mad.mw by [[mailto(julian dotdot romero adddd gmail dotdot com)]]
http://wiki.mad.mw/MoinMoin/TagMacro http://wiki.mad.mw/TechnoratiApi
1 # -*- coding: iso-8859-1 -*-
2 """
3 Tag macro
4
5 by julian@mad.mw
6 """
7
8 import re
9
10 def execute(macro, args):
11 sep=' | '
12 out = '<span class="taglist"> Tags: '
13 if args==None:
14 return '<p><strong class="error">Missing tag list.</strong></p>'
15 taglist = []
16 for tag in args.replace(' ','').split(','):
17 name = re.compile('^Tag').sub("",tag)
18 taglist.append('<a class="tag" href="http://technorati.com/tag/%s" rel="tag" onclick="location.href=\'Tag%s\';return false;">%s</a>' % (name, name, name))
19 out += sep.join(taglist)
20 out += '</span>'
21 return out
-- DetlevLengsfeld 2006-12-20 23:42:37
| /Servelet /Tag |
Linux/MoinMoin/Technorati/Tag (last modified 2008-11-04 06:59:56)