if you mean the "other" app fills the fields with an actual string that holds the 'None' value (it could be very well "foo", "bar" or "pizza") then....
fake_none_value = 'foo' for f in db.table.fields: db(db.table[f] == fake_none_value).update(f=None) should solve it On Saturday, January 18, 2014 5:12:36 PM UTC+1, aapaap wrote: > > hello, > > my database (sqlite) is (partially) filled by another program, > which inserts Null or None values. > Now if I use these fields in an HTML form, they show up as "None" > instead of an empty string. > > Is there a simple way to solve this for all fields at once ? > > thanks, > Stef > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.