On Dec 24, 3:00 pm, Fran <[email protected]> wrote: > Is there a way to make this fail gracefully if the field is blank? > (I want many fields to be optional, but if-populated to display > meaningfully..)
Fixed it :) db.dog.owner.display=lambda id: (id and [db(db.person.id==id).select() [0].name] or ["None"])[0] F --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

