From: Lebbeous Fogle-Weekley Date: Fri, 30 Mar 2012 19:30:42 +0000 (-0400) Subject: quieter debug console logs and a little cleanup ahead of next task X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d44068a9a12c217cb45fca67f58d50d11716d7f5;p=evergreen%2Fequinox.git quieter debug console logs and a little cleanup ahead of next task Signed-off-by: Lebbeous Fogle-Weekley --- diff --git a/Open-ILS/src/templates/conify/flattener_test.tt2 b/Open-ILS/src/templates/conify/flattener_test.tt2 index e6788f96fa..8f610f646d 100644 --- a/Open-ILS/src/templates/conify/flattener_test.tt2 +++ b/Open-ILS/src/templates/conify/flattener_test.tt2 @@ -19,7 +19,8 @@ call onNew(newitem) - * deleteItem -> call onDelete(deleteditem) - * setValue -> call onSet(item, attr, oldval, newval) - * setValues -> ditto - */ - - "newItem": function(keywordArgs, parentInfo) { - if (parentInfo) - throw new FlattenerStoreError("not a hierarchical datastore"); - + /* dojo.data.api.Write - only very partially implemented, because + * for FlattenerGrid, the intended client of this store, we don't + * need most of the methods. */ - /* we need to get new item by calling a fetch or something, because - * the new fmobj as result of createpane or something is not enough - * (we need the data the flattener would return about it) - * - * finish when editing is figured out */ - //this.onNew(myNewItem, parentInfo) + "deleteItem": function(item) { + console.warn("[unimplemented] deleteItem() XXX TODO"); }, "setValue": function(item, attribute, value) { @@ -460,23 +434,23 @@ if (!dojo._hasResource["openils.FlattenerStore"]) { }, "setValues": function(item, attribute, values) { - console.warn("[unimplemented] setValues(); unneeded or TODO?"); + console.warn("[unimplemented] setValues()"); /* unneeded */ }, - "deleteItem": function(item) { - console.warn("[unimplemented] deleteItem() XXX TODO"); + "newItem": function(keywordArgs, parentInfo) { + console.warn("[unimplemented] newItem()"); /* unneeded */ }, "unsetAttribute": function() { - console.warn("[unimplemented] unsetAttribute()"); + console.warn("[unimplemented] unsetAttribute()"); /* unneeded */ }, "save": function() { - console.warn("[unimplemented] save()"); + console.warn("[unimplemented] save()"); /* unneeded */ }, "revert": function() { - console.warn("[unimplemented] revert()"); + console.warn("[unimplemented] revert()"); /* unneeded */ }, "isDirty": function() { /* I /think/ this will be ok for our purposes */ @@ -485,11 +459,12 @@ if (!dojo._hasResource["openils.FlattenerStore"]) { return false; }, - /* dojo.data.api.Notification */ + /* dojo.data.api.Notification - Keep these no-op methods because + * clients will dojo.connect() to them. */ - "onNew" : function(item) { /* no-op, but keep */ }, - "onDelete" : function(item) { /* no-op, keep */ }, - "onSet": function(item, attr, oldval, newval) { /* no-op, but keep */ }, + "onNew" : function(item) { /* no-op */ }, + "onDelete" : function(item) { /* no-op */ }, + "onSet": function(item, attr, oldval, newval) { /* no-op */ }, /* *** Classes implementing any Dojo APIs do this to list which * APIs they're implementing. *** */ diff --git a/Open-ILS/web/js/dojo/openils/widget/FlattenerGrid.js b/Open-ILS/web/js/dojo/openils/widget/FlattenerGrid.js index da5ff05634..df9c0d5956 100644 --- a/Open-ILS/web/js/dojo/openils/widget/FlattenerGrid.js +++ b/Open-ILS/web/js/dojo/openils/widget/FlattenerGrid.js @@ -205,7 +205,6 @@ if (!dojo._hasResource["openils.widget.FlattenerGrid"]) { this.mapTerminii.push(terminus); } - console.log(dojo.toJson(this.mapTerminii)); }, "_supplementHeaderNames": function() { @@ -411,7 +410,6 @@ if (!dojo._hasResource["openils.widget.FlattenerGrid"]) { "requiredFields": this.requiredFields, "suppressFields": this.suppressEditFields, "onPostSubmit": function() { - console.log("onPostSubmit"); /* ask the store to call flattener specially to get * the flat row related to only this fmobj */ grid.store.loadItem({"force": true, "item": storeItem}); @@ -432,7 +430,6 @@ if (!dojo._hasResource["openils.widget.FlattenerGrid"]) { onPostSubmit(); }, "onCancel": function() { - console.info("onCancel"); setTimeout( function() { grid.views.views[0].getCellNode(