From: Tony Mack Date: Sat, 14 Mar 2009 20:10:48 +0000 (+0000) Subject: fix bug, cannot be an empty string X-Git-Tag: sfa-0.9-0@14641~575 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=1689d882713ca6b88c185abe4c785808f054343e;p=sfa.git fix bug, cannot be an empty string --- diff --git a/geni/util/rspec.py b/geni/util/rspec.py index f9453308..265be8bf 100644 --- a/geni/util/rspec.py +++ b/geni/util/rspec.py @@ -291,6 +291,7 @@ class Rspec(): class RecordSpec(Rspec): + root_tag = 'record' 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): - record_dict = {'': rdict} + record_dict = {self.root_tag : rdict} return Rspec.dict2dom(self, record_dict, include_doc) # vim:ts=4:expandtab