--- sql.py.old 2009-05-23 14:28:15.286720712 +0400
+++ sql.py 2009-05-23 14:27:09.450720875 +0400
@@ -1372,7 +1372,7 @@
fs.append(fieldname)
vs.append(sql_represent(field.default, ft, fd))
elif field.required is True:
- raise SyntaxError, 'SQLTable: missing required field'
+ raise SyntaxError, 'SQLTable: missing required
field: %s'%field
sql_f = ', '.join(fs)
sql_v = ', '.join(vs)
sql_t = self._tablename
--
Sincerely yours
Alexey Nezhdanov
--- sqlhtml.old2.py 2009-05-19 09:51:00.000000000 +0400
+++ sqlhtml.py 2009-05-23 14:49:49.158721892 +0400
@@ -114,7 +114,7 @@
opts = []
options = field.requires.options()
else:
- raise SyntaxError, 'widget cannot determine options'
+ raise SyntaxError, 'widget cannot determine options of %s'%field
opts += [OPTION(v, _value=k) for (k, v) in options]
return SELECT(*opts, **dict(_id=id, _class=field.type,
_name=field.name, value=value,