Index: /trunk/ippToPsps/jython/ipptopspsdb.py
===================================================================
--- /trunk/ippToPsps/jython/ipptopspsdb.py	(revision 33709)
+++ /trunk/ippToPsps/jython/ipptopspsdb.py	(revision 33710)
@@ -746,4 +746,12 @@
 
     '''
+    Sets the config field for this client
+    '''
+    def setConfigForThisClient(self, config, host, pid):
+
+        self.execute("UPDATE clients SET config = '" + config + "' \
+                WHERE host = '" + host + "' \
+                AND pid = " + str(pid))
+    '''
     Sets the config field for a set of loader clients
     '''
@@ -831,7 +839,7 @@
     Returns a list of available configs
     '''
-    def getConfigList(self):
+    def getActiveConfigList(self):
         
-        sql = "SELECT DISTINCT name FROM config"
+        sql = "SELECT DISTINCT name FROM config WHERE active = 1 ORDER BY name"
 
         configs = []
@@ -880,9 +888,8 @@
 
     '''
-    Reads config from the database and populates Config object
-    '''
-    def readConfig(self, host, pid):
-
-        # first get config defined for this client
+    Returns config for this client
+    '''
+    def getConfigForThisClient(self, host, pid):
+
         sql = "SELECT config \
                FROM clients \
@@ -898,4 +905,14 @@
             self.config.isLoaded = False
             return False
+
+        return True
+
+    '''
+    Reads config from the database and populates Config object
+    '''
+    def readConfig(self, host, pid):
+
+        # first get config defined for this client
+        if not self.getConfigForThisClient(host, pid): return False
 
         # now load that config
