Merge branch 'thgeneric'
[sfa.git] / sfa / plc / pldriver.py
index eecbadb..af3b213 100644 (file)
@@ -23,7 +23,9 @@ class PlDriver (PlShell):
         PlShell.__init__ (self, config)
  
         self.hrn = config.SFA_INTERFACE_HRN
-        self.SfaTable = SfaTable
+        # xxx thgen fixme - use SfaTable hardwired for now 
+        # will need to extend generic to support multiple storage systems
+        #self.SfaTable = SfaTable
         # Initialize the PLC shell only if SFA wraps a myPLC
         rspec_type = config.get_aggregate_type()
         assert (rspec_type == 'pl' or rspec_type == 'vini' or \
@@ -266,7 +268,9 @@ class PlDriver (PlShell):
         # we obtain
         
         # get the sfa records
-        table = self.SfaTable()
+        # xxx thgen fixme - use SfaTable hardwired for now 
+        # table = self.SfaTable()
+        table = SfaTable()
         person_list, persons = [], {}
         person_list = table.find({'type': 'user', 'pointer': person_ids})
         # create a hrns keyed on the sfa record's pointer.
@@ -366,7 +370,9 @@ class PlDriver (PlShell):
         # build a list of the new person ids, by looking up each person to get
         # their pointer
         newIdList = []
-        table = self.SfaTable()
+        # xxx thgen fixme - use SfaTable hardwired for now 
+        #table = self.SfaTable()
+        table = SfaTable()
         records = table.find({'type': 'user', 'hrn': newList})
         for rec in records:
             newIdList.append(rec['pointer'])