[rhmessaging-commits] rhmessaging commits: r2291 - mgmt/trunk/cumin/python/cumin.
rhmessaging-commits at lists.jboss.org
rhmessaging-commits at lists.jboss.org
Tue Aug 12 19:37:43 EDT 2008
Author: eallen
Date: 2008-08-12 19:37:43 -0400 (Tue, 12 Aug 2008)
New Revision: 2291
Modified:
mgmt/trunk/cumin/python/cumin/formats.py
Log:
Added optional id to formatted links
Modified: mgmt/trunk/cumin/python/cumin/formats.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/formats.py 2008-08-12 23:36:51 UTC (rev 2290)
+++ mgmt/trunk/cumin/python/cumin/formats.py 2008-08-12 23:37:43 UTC (rev 2291)
@@ -112,9 +112,9 @@
else:
return string
-def fmt_link(href, content, class_=""):
- return "<a href=\"%s\"%s>%s</a>" % \
- (href, class_ and " class=\"%s\" " % class_ or " ", content)
+def fmt_link(href, content, class_="", id=""):
+ return "<a %s href=\"%s\"%s>%s</a>" % \
+ (id and "id=\"%s\"" % id or "", href, class_ and " class=\"%s\" " % class_ or " ", content)
def fmt_olink(session, object, selected=False, name=None):
if name is None:
More information about the rhmessaging-commits
mailing list