rspec -> Rspec. TODO: change all XML literals into symbolic constants and define...
authorSapan Bhatia <sapanb@cs.princeton.edu>
Mon, 26 Oct 2009 16:02:01 +0000 (16:02 +0000)
committerSapan Bhatia <sapanb@cs.princeton.edu>
Mon, 26 Oct 2009 16:02:01 +0000 (16:02 +0000)
sfatables/runtime.py
sfatables/xmlrule.py

index 0c6b8b1..0ed38e0 100644 (file)
@@ -55,7 +55,7 @@ class SFATablesRules:
                 
     def add_request_context_to_rspec(self, doc):
         p = doc.xpathNewContext()
-        context = p.xpathEval("//rspec")
+        context = p.xpathEval("//Rspec")
         if (not context):
             raise Exception('Request is not an rspec')
         else:
index 3d9eeda..97940de 100644 (file)
@@ -57,7 +57,7 @@ class XMLRule:
 
     def add_rule_context_to_rspec(self, doc):
         p = doc.xpathNewContext()
-        context = p.xpathEval("//rspec")
+        context = p.xpathEval("//Rspec")
         if (not context):
             raise Exception('Request is not an rspec')
         else: