def edit(self, id=0, **kw): form_vals = {} if id: try: b = Blurb.get(id) form_vals = util.so_to_dict(b) except SQLObjectNotFound: pass form_vals.update(kw) return dict(blurb_form=blurb_form, form_vals=form_vals, blurb=None)
def edit(self, id=0, **kw): form_vals = {} if id: try: a = Artist.get(id) form_vals = util.so_to_dict(a) except SQLObjectNotFound: pass form_vals.update(kw) return dict(artist_form=artist_form, form_vals=form_vals)