type mapping.
authorFaiyaz Ahmed <faiyaza@cs.princeton.edu>
Sat, 28 Feb 2009 05:42:12 +0000 (05:42 +0000)
committerFaiyaz Ahmed <faiyaza@cs.princeton.edu>
Sat, 28 Feb 2009 05:42:12 +0000 (05:42 +0000)
geni/util/rspec.py

index b5ca861..aff3200 100644 (file)
@@ -259,4 +259,13 @@ class Rspec():
             for child in dom.childNodes:
                 self.filter(tagname, attribute, blacklist, whitelist, child) 
 
+
+       def validateDicts(self):
+               types = {
+                       'EInt' = int,
+                       'EString' = str,
+                       'EByteArray' = list,
+                       'EBoolean' = bool,
+                       'EFloat' = float,
+                       'EDate' = date}
 # vim:ts=4:expandtab