From d746cdb0d7cff782d5930273689d2d821dad2938 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Wed, 30 May 2012 13:49:42 +0000 Subject: [PATCH] insert class on table a-href tags svn: r19709 --- src/webapp/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/webapp/utils.py b/src/webapp/utils.py index 9e252111e..0b93bf121 100644 --- a/src/webapp/utils.py +++ b/src/webapp/utils.py @@ -186,9 +186,11 @@ class Table(object): class Doc(object): def __init__(self, doc): self.doc = doc + self.doc.set_link_attrs({"class": "browsecell"}) # None is paperstyle, which is ignored: self.doc = Doc(HtmlDoc.HtmlDoc(make_basic_stylesheet(Table={"set_width":95}), None)) self.doc.doc._backend = HtmlBackend() + self.doc.doc._backend.ADDITIONAL_LINK_TAGS = "class='browsecell'" # You can set elements id, class, etc: self.doc.doc.htmllist += [Html('div', class_="content", id="Gallery", style="overflow: auto; height:150px; background-color: #261803;")]