示例#1
0
def moleculeBoxHtml(moleculeBox):
    html = "<div class = \"molecule\" class=\"ui-widget-content\"  >"
    html += serverRender.render(moleculeBox.stringList())
    html += "</div>"
    return html   
示例#2
0
 def stringList(self):
     outp = ""
     for mol in self.molecules:
         outp += smiles(mol) + "."
     return serverRender.render(outp)