Diff of /pyke/fc_rule.py [e9291b] .. [d43b93] Maximize Restore

  Switch to side-by-side view

--- a/pyke/fc_rule.py
+++ b/pyke/fc_rule.py
@@ -50,7 +50,6 @@
 
 '''
 
-import pyke
 from pyke import contexts
 
 import itertools
@@ -76,7 +75,8 @@
     def register_rule(self):
 	for i, (kb_name, fact_name, arg_patterns) \
 	 in enumerate(self.foreach_facts):
-	    pyke.get_kb(kb_name).add_fc_rule_ref(fact_name, self, i)
+	    self.rule_base.engine.get_kb(kb_name) \
+                .add_fc_rule_ref(fact_name, self, i)
     def reset(self):
 	self.ran = False
     def run(self):