on inline form validation, also provide the 'unspecified' placeholder value for empty fields
--- a/web/views/basecontrollers.py Wed May 13 15:55:47 2009 +0200
+++ b/web/views/basecontrollers.py Wed May 13 16:07:44 2009 +0200
@@ -399,7 +399,8 @@
rset = self.req.execute('Any X,N WHERE X eid %%(x)s, X %s N' % rtype,
{'x': eid}, 'x')
entity = rset.get_entity(0, 0)
- return (success, args, entity.printable_value(rtype))
+ value = entity.printable_value(rtype)
+ return (success, args, value or self.req._('not specified'))
else:
return (success, args, None)