[open-ils-commits] r20414 - in trunk/Open-ILS/xul/staff_client: chrome/content/OpenILS server/OpenILS server/skin (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed May 4 09:48:58 EDT 2011
Author: phasefx
Date: 2011-05-04 09:48:56 -0400 (Wed, 04 May 2011)
New Revision: 20414
Modified:
trunk/Open-ILS/xul/staff_client/chrome/content/OpenILS/util_overlay_chrome.xul
trunk/Open-ILS/xul/staff_client/chrome/content/OpenILS/util_overlay_offline.xul
trunk/Open-ILS/xul/staff_client/server/OpenILS/util_overlay.xul
trunk/Open-ILS/xul/staff_client/server/skin/custom.js.example
Log:
debugging aid
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/OpenILS/util_overlay_chrome.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/OpenILS/util_overlay_chrome.xul 2011-05-04 13:48:51 UTC (rev 20413)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/OpenILS/util_overlay_chrome.xul 2011-05-04 13:48:56 UTC (rev 20414)
@@ -13,6 +13,9 @@
try {
if (typeof level == 'undefined') { level = 4; }
if (level > _dump_level) { return; }
+ if (typeof _dump_prefix != 'undefined') {
+ _original_dump(_dump_prefix + ' ');
+ }
switch(level) {
case 1: case 'error': _original_dump('error: '); break;
case 2: case 'warn': _original_dump('warn: '); break;
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/OpenILS/util_overlay_offline.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/OpenILS/util_overlay_offline.xul 2011-05-04 13:48:51 UTC (rev 20413)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/OpenILS/util_overlay_offline.xul 2011-05-04 13:48:56 UTC (rev 20414)
@@ -14,6 +14,9 @@
try {
if (typeof level == 'undefined') { level = 4; }
if (level > _dump_level) { return; }
+ if (typeof _dump_prefix != 'undefined') {
+ _original_dump(_dump_prefix + ' ');
+ }
switch(level) {
case 1: case 'error': _original_dump('error: '); break;
case 2: case 'warn': _original_dump('warn: '); break;
Modified: trunk/Open-ILS/xul/staff_client/server/OpenILS/util_overlay.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/OpenILS/util_overlay.xul 2011-05-04 13:48:51 UTC (rev 20413)
+++ trunk/Open-ILS/xul/staff_client/server/OpenILS/util_overlay.xul 2011-05-04 13:48:56 UTC (rev 20414)
@@ -16,6 +16,9 @@
try {
if (typeof level == 'undefined') { level = 4; }
if (level > _dump_level) { return; }
+ if (typeof _dump_prefix != 'undefined') {
+ _original_dump(_dump_prefix + ' ');
+ }
switch(level) {
case 1: case 'error': _original_dump('error: '); break;
case 2: case 'warn': _original_dump('warn: '); break;
Modified: trunk/Open-ILS/xul/staff_client/server/skin/custom.js.example
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/skin/custom.js.example 2011-05-04 13:48:51 UTC (rev 20413)
+++ trunk/Open-ILS/xul/staff_client/server/skin/custom.js.example 2011-05-04 13:48:56 UTC (rev 20414)
@@ -7,3 +7,23 @@
urls['browser'] = '/opac/' + LOCALE + '/skin/mylib/xml/advanced.xml?nps=1';
*/
+
+// Debugging aids. _dump_level = 4 enables all dump statements
+_dump_level = 4;
+var _dump_prefix = '0';
+try {
+ netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
+ var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces['nsIPrefBranch']);
+ if (!prefs.prefHasUserValue('oils.unique_id')) {
+ prefs.setIntPref('oils.unique_id',Number(_dump_prefix));
+ } else {
+ var temp = prefs.getIntPref('oils.unique_id') + 1;
+ prefs.setIntPref('oils.unique_id',temp);
+ _dump_prefix = String( temp );
+ }
+ dump(' _dump_prefix ' + _dump_prefix + ' = ' + location.href + '\n');
+} catch(E) {
+ dump('Error in custom.js trying to set oils.unique_id\n');
+}
+
+
More information about the open-ils-commits
mailing list