From f52863941519285cf727f3b97044acde998dd3c4 Mon Sep 17 00:00:00 2001 From: phasefx Date: Wed, 5 Oct 2005 14:58:08 +0000 Subject: [PATCH] the non-cacheable au git-svn-id: svn://svn.open-ils.org/ILS/trunk@1900 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../chrome/content/evergreen/OpenILS/data.js | 30 ++++++++++++------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/Open-ILS/xul/staff_client/chrome/content/evergreen/OpenILS/data.js b/Open-ILS/xul/staff_client/chrome/content/evergreen/OpenILS/data.js index c6dadb8759..60294b5d45 100644 --- a/Open-ILS/xul/staff_client/chrome/content/evergreen/OpenILS/data.js +++ b/Open-ILS/xul/staff_client/chrome/content/evergreen/OpenILS/data.js @@ -49,8 +49,9 @@ OpenILS.data = function (mw,G) { } catch(E) { throw(E); } + } else { + throw(E); // for now } - //throw(E); // for now } } } @@ -58,15 +59,24 @@ OpenILS.data = function (mw,G) { this.chain = []; this.chain.push( - gen_fm_retrieval_func( - 'au', - [ - 'open-ils.search', - 'open-ils.search.actor.user.session', - [ obj.G.auth.session.key ], - true - ] - ) + function() { + var f = gen_fm_retrieval_func( + 'au', + [ + 'open-ils.search', + 'open-ils.search.actor.user.session', + [ obj.G.auth.session.key ], + false + ] + ); + try { + f(); + } catch(E) { + // Probably the one thing we should not cache, so what do we do? + obj.list.au = new au(); + obj.list.au.home_lib( '1' ); + } + } ); obj.G.error.sdump('D_DEBUG','_fm_objects = ' + js2JSON(this._fm_objects) + '\n'); -- 2.43.2