Hi Michael
Try this - it works for me!
# Even simpler "world's simplest macro"
def execute(hdf, args, env):
return '<p>Hello %s</p>' % (hdf['trac.authname'])
Should produce
<p>Hello rsg</p>
or whatever your user name is, of course!
-Bob
Michael Bösendorfer wrote:
# bla.py -- The world's simplest macro
def execute(hdf, args, env):
muh = req.authname
return "Hello Michi: called with args: %s" % mu
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac