El Domingo 16 Julio 2006 03:57, Christopher Arndt escribió:
CA> Please read your code again very carefully:
CA>
CA> def addPerson(self,name):
CA> try:
CA> person=m.Person(name=name)
CA> except Exception:
CA> return dict(errors=u"That person already exist")
CA> ^^^^^^
CA> return dict(id=person.id,name=person.name)
CA>
CA> function dos (d) {
CA> if (d["tg_errors"]) {
CA> ^^^^^^^^^
CA> alert(d["tg_errors"])
CA> return
CA> }
CA> [...]
CA> }
no, that's a transcript mistake, in my code both things have the same name,
tg_errors. Is not only my code, with catwalk happens something similar
CA> Chris
CA>
CA> --~--~---------~--~----~------------~-------~--~----~
CA> You received this message because you are subscribed to the Google Groups
"TurboGears" group. CA> To post to this group, send email to
[email protected] CA> To unsubscribe from this group, send email
to [EMAIL PROTECTED] CA> For more options, visit this
group at http://groups.google.com/group/turbogears CA>
-~----------~----~----~----~------~----~------~--~---
CA>
CA>-- Javier Rojas GPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xA1C57061
pgpf9RLLHsGxp.pgp
Description: PGP signature

