From a10b10af16abf6a1d48cf976e45877a9d5affa4d Mon Sep 17 00:00:00 2001 From: gfawcett Date: Thu, 7 May 2009 00:15:51 +0000 Subject: [PATCH] allow Syrup to start without EG integration; but warn that it's absent. git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@459 6d9bc8c9-1ec2-4278-b937-99fde70a366f --- conifer/TODO | 6 +++++- conifer/custom/lib_integration.py | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/conifer/TODO b/conifer/TODO index 4f818dc..5307c56 100644 --- a/conifer/TODO +++ b/conifer/TODO @@ -2,7 +2,9 @@ CRITICAL: IMPORTANT: -* factor out hardcoded references to the EG server. +* allow concat.ca, windsor.concat.ca, etc. for paste-in item queries. + +* for Windsor, write temporary web-services for directory services. * Notify circulation of wanted items. What should it do? @@ -70,3 +72,5 @@ RECENTLY DONE: non-physical items. 856$9 is a definitive indicator in the Conifer (Evergreen?) context. +* factor out hardcoded references to the EG server. + diff --git a/conifer/custom/lib_integration.py b/conifer/custom/lib_integration.py index 294e010..5b8854a 100644 --- a/conifer/custom/lib_integration.py +++ b/conifer/custom/lib_integration.py @@ -40,7 +40,11 @@ from django.conf import settings from conifer.libsystems.evergreen.support import initialize EG_BASE = 'http://%s/' % settings.EVERGREEN_GATEWAY_SERVER -initialize(EG_BASE) +try: + initialize(EG_BASE) +except: + import warnings + warnings.warn('Evergreen inaccessible! Integration will suck eggs!') from conifer.libsystems.evergreen import item_status as I from conifer.libsystems.sip.sipclient import SIP -- 2.11.0