[open-ils-commits] r1299 - servres/trunk/conifer/integration (gfawcett)
svn at svn.open-ils.org
svn at svn.open-ils.org
Sat Apr 2 20:37:50 EDT 2011
Author: gfawcett
Date: 2011-04-02 20:37:49 -0400 (Sat, 02 Apr 2011)
New Revision: 1299
Modified:
servres/trunk/conifer/integration/uwindsor.py
Log:
conifer/integration/uwindsor.py: put OPENSRF_ constants back in uwindsor.py for now
Per discussion with Art, they don't really belong in local_settings.
Modified: servres/trunk/conifer/integration/uwindsor.py
===================================================================
--- servres/trunk/conifer/integration/uwindsor.py 2011-04-03 00:37:46 UTC (rev 1298)
+++ servres/trunk/conifer/integration/uwindsor.py 2011-04-03 00:37:49 UTC (rev 1299)
@@ -22,8 +22,22 @@
# USE_Z3950: if True, use Z39.50 for catalogue search; if False, use OpenSRF.
# Don't set this value directly here: rather, if there is a valid Z3950_CONFIG
# settings in local_settings.py, then Z39.50 will be used.
+
USE_Z3950 = getattr(settings, 'Z3950_CONFIG', None) is not None
+
+OPENSRF_AUTHENTICATE = "open-ils.auth.authenticate.complete"
+OPENSRF_AUTHENTICATE_INIT = "open-ils.auth.authenticate.init"
+OPENSRF_BATCH_UPDATE = "open-ils.cat.asset.copy.fleshed.batch.update"
+OPENSRF_CIRC_UPDATE = "open-ils.cstore open-ils.cstore.direct.action.circulation.update"
+OPENSRF_CLEANUP = "open-ils.auth.session.delete"
+OPENSRF_CN_BARCODE = "open-ils.circ.copy_details.retrieve.barcode.authoritative"
+OPENSRF_CN_CALL = "open-ils.search.asset.copy.retrieve_by_cn_label"
+OPENSRF_COPY_COUNTS = "open-ils.search.biblio.copy_counts.location.summary.retrieve"
+OPENSRF_FLESHED2_CALL = "open-ils.search.asset.copy.fleshed2.retrieve"
+OPENSRF_FLESHEDCOPY_CALL = "open-ils.search.asset.copy.fleshed.batch.retrieve.authoritative"
+
+
def department_course_catalogue():
"""
Return a list of rows representing all known, active courses and
@@ -96,7 +110,7 @@
# site would not have access to these but will leave for now
# since there are no hardcoded references
try:
- counts = E1(settings.OPENSRF_COPY_COUNTS, bib_id, 1, 0)
+ counts = E1(OPENSRF_COPY_COUNTS, bib_id, 1, 0)
lib = desk = avail = vol = 0
dueinfo = ''
callno = ''
@@ -137,12 +151,12 @@
callno = callnum
lib += anystatus_here
- copyids = E1(settings.OPENSRF_CN_CALL, bib_id, callnum, org)
+ copyids = E1(OPENSRF_CN_CALL, bib_id, callnum, org)
# we want to return the resource that will be returned first if
# already checked out
for copyid in copyids:
- circinfo = E1(settings.OPENSRF_FLESHED2_CALL, copyid)
+ circinfo = E1(OPENSRF_FLESHED2_CALL, copyid)
thisloc = circinfo.get("location")
if thisloc:
More information about the open-ils-commits
mailing list