node tag value should go in the text field
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Thu, 30 Jun 2011 19:27:23 +0000 (15:27 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Thu, 30 Jun 2011 19:27:23 +0000 (15:27 -0400)
sfa/rspecs/sfa_rspec.py

index 1962235..5eb34ed 100755 (executable)
@@ -227,7 +227,7 @@ class SfaRSpec(RSpec):
                 for tag in node['tags']:
                    # expose this hard wired list of tags, plus the ones that are marked 'sfa' in their category 
                    if tag['tagname'] in ['fcdistro', 'arch'] or 'sfa' in tag['category'].split('/'):
-                        tag_element = etree.SubElement(node_tag, tag['tagname'], value=tag['value'])
+                        tag_element = etree.SubElement(node_tag, tag['tagname']).text=tag['value']
 
             if 'site' in node:
                 longitude = str(node['site']['longitude'])