On Apr 29, 8:08 pm, Iceberg <iceb...@21cn.com> wrote: > Sorry but I have to say the {{if response.flash.xml()[1:4] == 'div':}} > looks ugly.
Yup, I know ;) > I guess: > isinstance(response.flash, str) > or: > isinstance(response.flash,DIV) > would do same thing and is more elegant. Nice :) 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 web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---