Projects
/
mdb-ng
Archived
4
0
Fork 0

Fixed so that the PVVDB.__format method actually _checks_ the fields

for a correct datatype.
This commit is contained in:
Øyvind Grønnesby 2005-03-17 23:49:12 +00:00
parent 0c9e2826b8
commit 9b3c019edb
1 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,8 @@ class PVVDB:
continue
name, value = line.strip().split(":", 1)
value = value.split("#", 1)[0].strip()
if not value in ['scalar', 'list']:
raise PVVDBError, "%s not legal .format datatype." % value
fmt[name] = value
return fmt