From: Sapan Bhatia Date: Mon, 26 Oct 2009 16:02:01 +0000 (+0000) Subject: rspec -> Rspec. TODO: change all XML literals into symbolic constants and define... X-Git-Tag: sfa-0.9-6~114 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=9a053166cdb0187d0514403e92e8719d9a3aa8ee rspec -> Rspec. TODO: change all XML literals into symbolic constants and define them visibly somewhere. --- diff --git a/sfatables/runtime.py b/sfatables/runtime.py index 0c6b8b1c..0ed38e06 100644 --- a/sfatables/runtime.py +++ b/sfatables/runtime.py @@ -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: diff --git a/sfatables/xmlrule.py b/sfatables/xmlrule.py index 3d9eeda6..97940de2 100644 --- a/sfatables/xmlrule.py +++ b/sfatables/xmlrule.py @@ -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: