def index(self): doc = self.get_docobject() #db = self.get_dbconn() #m = ClientManager(db) p = Paragraph(align='left') p.append(Anchor('clients', href='clients')) doc.body.set(p) return str(doc)
def _make_scripts_list(self, trait): rows = self.trait._scripts.scripts(trait=trait) if rows: slist = UnorderedList() for row in rows: script = row.script p = Paragraph() sa = Anchor(script, href='show.script.%s' % script) ea = Anchor('(edit)', href='edit.script.%s' % script) p.append(sa) p.append(ea) slist.append(ListItem(p)) return slist else: return None