git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix bug, cannot be an empty string
[sfa.git]
/
geni
/
util
/
rspec.py
diff --git
a/geni/util/rspec.py
b/geni/util/rspec.py
index
f945330
..
265be8b
100644
(file)
--- a/
geni/util/rspec.py
+++ b/
geni/util/rspec.py
@@
-291,6
+291,7
@@
class Rspec():
class RecordSpec(Rspec):
class RecordSpec(Rspec):
+ root_tag = 'record'
def parseDict(self, rdict, include_doc = False):
"""
Convert a dictionary into a dom object and store it.
def parseDict(self, rdict, include_doc = False):
"""
Convert a dictionary into a dom object and store it.
@@
-298,7
+299,7
@@
class RecordSpec(Rspec):
self.rootNode = self.dict2dom(rdict, include_doc)
def dict2dom(self, rdict, include_doc = False):
self.rootNode = self.dict2dom(rdict, include_doc)
def dict2dom(self, rdict, include_doc = False):
- record_dict = {
''
: rdict}
+ record_dict = {
self.root_tag
: rdict}
return Rspec.dict2dom(self, record_dict, include_doc)
# vim:ts=4:expandtab
return Rspec.dict2dom(self, record_dict, include_doc)
# vim:ts=4:expandtab