知道为什么我会收到此错误消息:
editResponsHtml """ % (person, pId)
TypeError: not all arguments converted during string formatting?
代码:
def editRespons(form):
global FAMILYTREE
FAMILYTREE.editPerson(int(form.getvalue("id").decode('latin-1')), form.getvalue("firstName").decode('latin-1'), form.getvalue("lastName").decode('latin-1'), form.getvalue("bYear").decode('latin-1'), form.getvalue("dYear").decode('latin-1'), form.getvalue("mom").decode('latin-1'), form.getvalue("dad").decode('latin-1'))
person = FAMILYTREE.getPerson(form.getvalue("id"))
return editResponsHtml(person, person.fid)
def editResponsHtml(person, pId):
return u"""<p>%s sparades!</p>
""" % (person, pId)