Added the possibility for users to define a set of information fields
[sfa.git] / sfa / rspecs / rspec.py
index 96523f0..8ed637d 100755 (executable)
@@ -10,11 +10,15 @@ from sfa.util.faults import SfaNotImplemented, InvalidRSpec
 class RSpec:
     header = '<?xml version="1.0"?>\n'
     template = """<RSpec></RSpec>"""
-    namespaces = {}
     config = Config()
     xml = None
+    type = None
+    version = None
+    namespaces = None    
+    user_options = {}
   
-    def __init__(self, rspec="", namespaces={}):
+    def __init__(self, rspec="", namespaces={}, user_options={}):
+       self.user_options = user_options
         if rspec:
             self.parse_rspec(rspec, namespaces)
         else:
@@ -85,6 +89,8 @@ class RSpec:
                     if opt.text == value:
                         elem.remove(opt)
 
+    def merge(self, in_rspec):
+        pass
 
     def validate(self, schema):
         """