This is hopefully the first version of sfatables that basically works.
Sapan Bhatia [Mon, 26 Oct 2009 15:25:15 +0000 (15:25 +0000)]
sfatables/test.sfarspec
sfatables/xmlrule.py

index 977c244..f0a856a 100644 (file)
@@ -1,7 +1,6 @@
 <!-- run "runtime.py sfarspec" to apply current rule set to this file -->
 
 <rspec>
-    <request-context><sfa><user><hrn>plc.princeton.sapanb</hrn></user></sfa></request-context>
      <request>
         <nodespec>
             <node name="plc.princeton.planetlab-01"/>
index 4714185..3d9eeda 100644 (file)
@@ -77,8 +77,6 @@ class XMLRule:
         return doc
 
     def apply_interpreted(self, rspec):
-        import pdb
-        pdb.set_trace()
         rspec = self.add_rule_context_to_rspec(rspec)
         # Interpreted
         #
@@ -115,8 +113,6 @@ class XMLRule:
         self.processors[type] = processor[0].content
         self.arguments[type] = p.xpathEval('//rule//argument[value!=""]')
 
-        import pdb
-        pdb.set_trace()
         p.xpathFreeContext()