[open-ils-commits] [GIT] Evergreen ILS branch master updated. 05f49e9f344f988fb0fe70739b02d48ebfbb9754

Evergreen Git git at git.evergreen-ils.org
Fri Oct 7 11:38:42 EDT 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  05f49e9f344f988fb0fe70739b02d48ebfbb9754 (commit)
      from  d0063cd6e536f4a27925e8228f8a1622717f7974 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 05f49e9f344f988fb0fe70739b02d48ebfbb9754
Author: Jason Etheridge <jason at esilibrary.com>
Date:   Fri Oct 7 11:38:14 2011 -0400

    control client dump statements through pref
    
    Signed-off-by: Jason Etheridge <jason at esilibrary.com>

diff --git a/Open-ILS/xul/staff_client/server/skin/custom.js.example b/Open-ILS/xul/staff_client/server/skin/custom.js.example
index 5325fd7..b23a31f 100644
--- a/Open-ILS/xul/staff_client/server/skin/custom.js.example
+++ b/Open-ILS/xul/staff_client/server/skin/custom.js.example
@@ -21,7 +21,15 @@
 */
 
 // Debugging aids.  _dump_level = 4 enables all dump statements
-_dump_level = 4;
+try {
+    netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
+    var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces['nsIPrefBranch']);
+    if (prefs.prefHasUserValue('oils.dump_level')) {
+        _dump_level = prefs.getIntPref('oils.dump_level');
+    }
+} catch(E) {
+    dump('Error setting _dump_level in custom.js for ' + location.href + '\n');
+}
 
 var _dump_prefix = '0';
 try {

-----------------------------------------------------------------------

Summary of changes:
 .../xul/staff_client/server/skin/custom.js.example |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list