[Opensrf-commits] r2063 - trunk/src/python/osrf (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Nov 9 09:46:04 EST 2010
Author: dbs
Date: 2010-11-09 09:46:03 -0500 (Tue, 09 Nov 2010)
New Revision: 2063
Modified:
trunk/src/python/osrf/stack.py
Log:
Reference constants properly
Modified: trunk/src/python/osrf/stack.py
===================================================================
--- trunk/src/python/osrf/stack.py 2010-11-09 14:32:13 UTC (rev 2062)
+++ trunk/src/python/osrf/stack.py 2010-11-09 14:46:03 UTC (rev 2063)
@@ -73,7 +73,7 @@
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 @@
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:
More information about the opensrf-commits
mailing list