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