From 0cf04635161db78576df02afbc7f7032fa82ff1c Mon Sep 17 00:00:00 2001 From: dbs Date: Tue, 9 Nov 2010 14:46:03 +0000 Subject: [PATCH] Reference constants properly git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@2063 9efc2488-bf62-4759-914b-345cdb29e865 --- src/python/osrf/stack.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/python/osrf/stack.py b/src/python/osrf/stack.py index f0240f8..cc5a4dc 100644 --- a/src/python/osrf/stack.py +++ b/src/python/osrf/stack.py @@ -73,7 +73,7 @@ def handle_client(session, message): if status_code == osrf.const.OSRF_STATUS_OK: # We have connected successfully osrf.log.log_debug("Successfully connected to " + session.service) - session.state = OSRF_APP_SESSION_CONNECTED + session.state = osrf.const.OSRF_APP_SESSION_CONNECTED return if status_code == osrf.const.OSRF_STATUS_CONTINUE: @@ -83,12 +83,12 @@ def handle_client(session, message): if status_code == osrf.const.OSRF_STATUS_TIMEOUT: osrf.log.log_debug("The server did not receive a request from us in time...") - session.state = OSRF_APP_SESSION_DISCONNECTED + session.state = osrf.const.OSRF_APP_SESSION_DISCONNECTED return if status_code == osrf.const.OSRF_STATUS_NOTFOUND: osrf.log.log_error("Requested method was not found on the server: %s" % status_text) - session.state = OSRF_APP_SESSION_DISCONNECTED + session.state = osrf.const.OSRF_APP_SESSION_DISCONNECTED raise osrf.ex.OSRFServiceException(status_text) if status_code == osrf.const.OSRF_STATUS_INTERNALSERVERERROR: -- 2.11.0