mirror of
https://github.com/yweber/lodel2.git
synced 2026-02-03 17:50:12 +01:00
Coorecting dats_base
This commit is contained in:
parent
d06d5cd24b
commit
4acb7832ff
1 changed files with 5 additions and 0 deletions
|
|
@ -64,6 +64,11 @@ class Varchar(DataField):
|
|||
|
||||
def _check_data_value(self, value):
|
||||
error = None
|
||||
try:
|
||||
value = str(value)
|
||||
except(ValueError, TypeError):
|
||||
error = TypeError("The value '%s' can't be a str" % value)
|
||||
return value, error
|
||||
return value, error
|
||||
|
||||
##@brief Data field designed to handle date & time
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue