added attributes_list() method
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Tue, 5 Jul 2011 12:10:52 +0000 (08:10 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Tue, 5 Jul 2011 12:10:52 +0000 (08:10 -0400)
sfa/rspecs/pg_rspec.py

index a21a2ab..6ee30db 100755 (executable)
@@ -98,6 +98,13 @@ class PGRSpec(RSpec):
     def get_slice_attributes(self, network=None):
         return []
 
+    def attributes_list(self, elem):
+        opts = []
+        if elem is not None:
+            for e in elem:
+                opts.append((e.tag, e.text))
+        return opts
+
     def get_default_sliver_attributes(self, network=None):
         return []