[open-ils-commits] r8387 - in trunk/Open-ILS/src/python/oils: . utils

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Jan 15 18:51:37 EST 2008


Author: erickson
Date: 2008-01-15 18:26:10 -0500 (Tue, 15 Jan 2008)
New Revision: 8387

Modified:
   trunk/Open-ILS/src/python/oils/system.py
   trunk/Open-ILS/src/python/oils/utils/utils.py
Log:
updated to match opensrf changes, more move away from prefixed functions.

Modified: trunk/Open-ILS/src/python/oils/system.py
===================================================================
--- trunk/Open-ILS/src/python/oils/system.py	2008-01-15 18:34:22 UTC (rev 8386)
+++ trunk/Open-ILS/src/python/oils/system.py	2008-01-15 23:26:10 UTC (rev 8387)
@@ -14,13 +14,14 @@
 # -----------------------------------------------------------------------
 
 import osrf.log
-from osrf.system import connect
+import osrf.system
 from oils.utils.idl import IDLParser
 from oils.utils.csedit import oilsLoadCSEditor
 
-def oilsConnect(config, configContext):
-	"""Connects to the opensrf network,  parses the IDL file, and loads the CSEditor"""
-	osrf.log.log_info("oilsConnect(): connecting with config %s" % config)
-	connect(config, configContext)
-	IDLParser.parse()
-	oilsLoadCSEditor()
+class System(object):
+    @staticmethod
+    def connect(**kwargs):
+	    """Connects to the opensrf network,  parses the IDL file, and loads the CSEditor"""
+	    osrf.system.System.connect(**kwargs)
+	    IDLParser.parse()
+	    oilsLoadCSEditor()

Modified: trunk/Open-ILS/src/python/oils/utils/utils.py
===================================================================
--- trunk/Open-ILS/src/python/oils/utils/utils.py	2008-01-15 18:34:22 UTC (rev 8386)
+++ trunk/Open-ILS/src/python/oils/utils/utils.py	2008-01-15 23:26:10 UTC (rev 8387)
@@ -14,7 +14,7 @@
 # -----------------------------------------------------------------------
 
 import re, md5
-from osrf.ses import AtomicRequest
+import osrf.ses
 from osrf.log import *
 
 
@@ -61,14 +61,14 @@
 
     log_info("attempting login with user " + username)
 
-    seed = AtomicRequest(
+    seed = osrf.ses.ClientSession.atomic_request(
         'open-ils.auth', 
         'open-ils.auth.authenticate.init', username)
 
     # generate the hashed password
     password = md5sum(seed + md5sum(password))
 
-    return AtomicRequest(
+    return osrf.ses.ClientSession.atomic_request(
         'open-ils.auth',
         'open-ils.auth.authenticate.complete',
         {   'workstation' : workstation,



More information about the open-ils-commits mailing list