From 37df8abfc706f33669365d7aca07838f0cc90d23 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Fri, 20 Apr 2012 11:17:10 +0530 Subject: [PATCH] knowledge base module removed --- erpnext/knowledge_base/page/__init__.py | 0 erpnext/knowledge_base/page/question_view/__init__.py | 0 erpnext/knowledge_base/page/questions/__init__.py | 0 .../doctype/answer}/__init__.py | 0 .../doctype/answer/answer.txt | 4 ++-- .../doctype => utilities/doctype/question}/__init__.py | 0 .../doctype/question/question.py | 0 .../doctype/question/question.txt | 4 ++-- .../doctype/question_control}/__init__.py | 0 .../doctype/question_control/question_control.txt | 4 ++-- .../page/kb_common/kb_common.js | 6 +++--- .../question => utilities/page/question_view}/__init__.py | 0 .../page/question_view/question_view.css | 0 .../page/question_view/question_view.html | 0 .../page/question_view/question_view.js | 8 ++++---- .../page/question_view/question_view.py | 0 .../page/question_view/question_view.txt | 4 ++-- .../page/questions}/__init__.py | 0 .../page/questions/questions.css | 0 .../page/questions/questions.html | 0 .../page/questions/questions.js | 4 ++-- .../page/questions/questions.py | 0 .../page/questions/questions.txt | 2 +- 23 files changed, 18 insertions(+), 18 deletions(-) delete mode 100644 erpnext/knowledge_base/page/__init__.py delete mode 100644 erpnext/knowledge_base/page/question_view/__init__.py delete mode 100644 erpnext/knowledge_base/page/questions/__init__.py rename erpnext/{knowledge_base => utilities/doctype/answer}/__init__.py (100%) rename erpnext/{knowledge_base => utilities}/doctype/answer/answer.txt (98%) rename erpnext/{knowledge_base/doctype => utilities/doctype/question}/__init__.py (100%) rename erpnext/{knowledge_base => utilities}/doctype/question/question.py (100%) rename erpnext/{knowledge_base => utilities}/doctype/question/question.txt (98%) rename erpnext/{knowledge_base/doctype/answer => utilities/doctype/question_control}/__init__.py (100%) rename erpnext/{knowledge_base => utilities}/doctype/question_control/question_control.txt (94%) rename erpnext/{knowledge_base => utilities}/page/kb_common/kb_common.js (97%) rename erpnext/{knowledge_base/doctype/question => utilities/page/question_view}/__init__.py (100%) rename erpnext/{knowledge_base => utilities}/page/question_view/question_view.css (100%) rename erpnext/{knowledge_base => utilities}/page/question_view/question_view.html (100%) rename erpnext/{knowledge_base => utilities}/page/question_view/question_view.js (93%) rename erpnext/{knowledge_base => utilities}/page/question_view/question_view.py (100%) rename erpnext/{knowledge_base => utilities}/page/question_view/question_view.txt (93%) rename erpnext/{knowledge_base/doctype/question_control => utilities/page/questions}/__init__.py (100%) rename erpnext/{knowledge_base => utilities}/page/questions/questions.css (100%) rename erpnext/{knowledge_base => utilities}/page/questions/questions.html (100%) rename erpnext/{knowledge_base => utilities}/page/questions/questions.js (97%) rename erpnext/{knowledge_base => utilities}/page/questions/questions.py (100%) rename erpnext/{knowledge_base => utilities}/page/questions/questions.txt (93%) diff --git a/erpnext/knowledge_base/page/__init__.py b/erpnext/knowledge_base/page/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/erpnext/knowledge_base/page/question_view/__init__.py b/erpnext/knowledge_base/page/question_view/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/erpnext/knowledge_base/page/questions/__init__.py b/erpnext/knowledge_base/page/questions/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/erpnext/knowledge_base/__init__.py b/erpnext/utilities/doctype/answer/__init__.py similarity index 100% rename from erpnext/knowledge_base/__init__.py rename to erpnext/utilities/doctype/answer/__init__.py diff --git a/erpnext/knowledge_base/doctype/answer/answer.txt b/erpnext/utilities/doctype/answer/answer.txt similarity index 98% rename from erpnext/knowledge_base/doctype/answer/answer.txt rename to erpnext/utilities/doctype/answer/answer.txt index 6d664f2102..75c3f332da 100644 --- a/erpnext/knowledge_base/doctype/answer/answer.txt +++ b/erpnext/utilities/doctype/answer/answer.txt @@ -18,7 +18,7 @@ 'colour': u'White:FFF', 'doctype': 'DocType', 'in_create': 1, - 'module': u'Knowledge Base', + 'module': u'Utilities', 'name': '__common__', 'read_only': 1, 'section_style': u'Simple', @@ -99,4 +99,4 @@ 'label': u'Users Voted', 'print_hide': 1 } -] \ No newline at end of file +] diff --git a/erpnext/knowledge_base/doctype/__init__.py b/erpnext/utilities/doctype/question/__init__.py similarity index 100% rename from erpnext/knowledge_base/doctype/__init__.py rename to erpnext/utilities/doctype/question/__init__.py diff --git a/erpnext/knowledge_base/doctype/question/question.py b/erpnext/utilities/doctype/question/question.py similarity index 100% rename from erpnext/knowledge_base/doctype/question/question.py rename to erpnext/utilities/doctype/question/question.py diff --git a/erpnext/knowledge_base/doctype/question/question.txt b/erpnext/utilities/doctype/question/question.txt similarity index 98% rename from erpnext/knowledge_base/doctype/question/question.txt rename to erpnext/utilities/doctype/question/question.txt index 01a86ee179..11738672a7 100644 --- a/erpnext/knowledge_base/doctype/question/question.txt +++ b/erpnext/utilities/doctype/question/question.txt @@ -18,7 +18,7 @@ 'colour': u'White:FFF', 'doctype': 'DocType', 'in_create': 1, - 'module': u'Knowledge Base', + 'module': u'Utilities', 'name': '__common__', 'read_only': 1, 'section_style': u'Simple', @@ -155,4 +155,4 @@ 'oldfieldname': u'file_list', 'oldfieldtype': u'Text' } -] \ No newline at end of file +] diff --git a/erpnext/knowledge_base/doctype/answer/__init__.py b/erpnext/utilities/doctype/question_control/__init__.py similarity index 100% rename from erpnext/knowledge_base/doctype/answer/__init__.py rename to erpnext/utilities/doctype/question_control/__init__.py diff --git a/erpnext/knowledge_base/doctype/question_control/question_control.txt b/erpnext/utilities/doctype/question_control/question_control.txt similarity index 94% rename from erpnext/knowledge_base/doctype/question_control/question_control.txt rename to erpnext/utilities/doctype/question_control/question_control.txt index b1443363c2..b037b67d72 100644 --- a/erpnext/knowledge_base/doctype/question_control/question_control.txt +++ b/erpnext/utilities/doctype/question_control/question_control.txt @@ -15,7 +15,7 @@ 'colour': u'White:FFF', 'doctype': 'DocType', 'issingle': 1, - 'module': u'Knowledge Base', + 'module': u'Utilities', 'name': '__common__', 'section_style': u'Simple', 'server_code_error': u' ', @@ -27,4 +27,4 @@ 'doctype': 'DocType', 'name': u'Question Control' } -] \ No newline at end of file +] diff --git a/erpnext/knowledge_base/page/kb_common/kb_common.js b/erpnext/utilities/page/kb_common/kb_common.js similarity index 97% rename from erpnext/knowledge_base/page/kb_common/kb_common.js rename to erpnext/utilities/page/kb_common/kb_common.js index 23c1ba31fd..d77a938e0e 100644 --- a/erpnext/knowledge_base/page/kb_common/kb_common.js +++ b/erpnext/utilities/page/kb_common/kb_common.js @@ -56,7 +56,7 @@ KBItemToolbar = function(args, kb) { console.log(1); this.innerHTML = 'deleting...'; this.disabled = 1; - $c_page('knowledge_base', 'questions', 'delete', { + $c_page('utilities', 'questions', 'delete', { dt: me.doctype, dn: me.det.name}, function(r,rt) { // reload the list kb.list.run() @@ -112,7 +112,7 @@ EditableText = function(args) { } var btn = this; $(btn).set_working(); - $c_page('knowledge_base', 'question_view', 'update_item', { + $c_page('utilities', 'question_view', 'update_item', { dt: me.dt, dn: me.dn, fn: me.fieldname, text: v }, function(r) { @@ -140,4 +140,4 @@ EditableText = function(args) { me.$w.find('.ed-text-input, .ed-text-save, .ed-text-cancel, .help').toggle(true); } -} \ No newline at end of file +} diff --git a/erpnext/knowledge_base/doctype/question/__init__.py b/erpnext/utilities/page/question_view/__init__.py similarity index 100% rename from erpnext/knowledge_base/doctype/question/__init__.py rename to erpnext/utilities/page/question_view/__init__.py diff --git a/erpnext/knowledge_base/page/question_view/question_view.css b/erpnext/utilities/page/question_view/question_view.css similarity index 100% rename from erpnext/knowledge_base/page/question_view/question_view.css rename to erpnext/utilities/page/question_view/question_view.css diff --git a/erpnext/knowledge_base/page/question_view/question_view.html b/erpnext/utilities/page/question_view/question_view.html similarity index 100% rename from erpnext/knowledge_base/page/question_view/question_view.html rename to erpnext/utilities/page/question_view/question_view.html diff --git a/erpnext/knowledge_base/page/question_view/question_view.js b/erpnext/utilities/page/question_view/question_view.js similarity index 93% rename from erpnext/knowledge_base/page/question_view/question_view.js rename to erpnext/utilities/page/question_view/question_view.js index 86a2b98166..14b6850404 100644 --- a/erpnext/knowledge_base/page/question_view/question_view.js +++ b/erpnext/utilities/page/question_view/question_view.js @@ -65,7 +65,7 @@ KBQuestionView = function(w, qid, qtext) { // check if users has answered // (if no) then add a box to add a new answer this.make_add_answer = function() { - $c_page('knowledge_base', 'question_view', 'has_answered', qid, function(r, rt) { + $c_page('utilities', 'question_view', 'has_answered', qid, function(r, rt) { if(r.message=='No') { me.make_answer_box_link(); } @@ -92,7 +92,7 @@ KBQuestionView = function(w, qid, qtext) { var v = wn.tinymce.get_value(me.input); if(!v) { msgprint('Write something!'); return; } me.btn.set_working(); - $c_page('knowledge_base', 'question_view', 'add_answer', {qid: qid, answer:v}, + $c_page('utilities', 'question_view', 'add_answer', {qid: qid, answer:v}, function(r, rt) { me.btn.done_working(); me.ans_list.list.run(); @@ -107,7 +107,7 @@ KBQuestionView = function(w, qid, qtext) { this.make(); } else { - $c_page('knowledge_base', 'question_view', 'get_question', qid, function(r, rt) { + $c_page('utilities', 'question_view', 'get_question', qid, function(r, rt) { qtext = r.message; me.make(); }); @@ -185,4 +185,4 @@ KBAnswer = function(body, data, ans_list) { } -wn.require('erpnext/knowledge_base/page/kb_common/kb_common.js'); \ No newline at end of file +wn.require('erpnext/utilities/page/kb_common/kb_common.js'); diff --git a/erpnext/knowledge_base/page/question_view/question_view.py b/erpnext/utilities/page/question_view/question_view.py similarity index 100% rename from erpnext/knowledge_base/page/question_view/question_view.py rename to erpnext/utilities/page/question_view/question_view.py diff --git a/erpnext/knowledge_base/page/question_view/question_view.txt b/erpnext/utilities/page/question_view/question_view.txt similarity index 93% rename from erpnext/knowledge_base/page/question_view/question_view.txt rename to erpnext/utilities/page/question_view/question_view.txt index 9a10f8f930..719b55130f 100644 --- a/erpnext/knowledge_base/page/question_view/question_view.txt +++ b/erpnext/utilities/page/question_view/question_view.txt @@ -13,7 +13,7 @@ # These values are common for all Page { 'doctype': 'Page', - 'module': 'Knowledge Base', + 'module': 'Utilities', 'name': '__common__', 'page_name': 'Question View', 'standard': 'Yes' @@ -24,4 +24,4 @@ 'doctype': 'Page', 'name': 'question-view' } -] \ No newline at end of file +] diff --git a/erpnext/knowledge_base/doctype/question_control/__init__.py b/erpnext/utilities/page/questions/__init__.py similarity index 100% rename from erpnext/knowledge_base/doctype/question_control/__init__.py rename to erpnext/utilities/page/questions/__init__.py diff --git a/erpnext/knowledge_base/page/questions/questions.css b/erpnext/utilities/page/questions/questions.css similarity index 100% rename from erpnext/knowledge_base/page/questions/questions.css rename to erpnext/utilities/page/questions/questions.css diff --git a/erpnext/knowledge_base/page/questions/questions.html b/erpnext/utilities/page/questions/questions.html similarity index 100% rename from erpnext/knowledge_base/page/questions/questions.html rename to erpnext/utilities/page/questions/questions.html diff --git a/erpnext/knowledge_base/page/questions/questions.js b/erpnext/utilities/page/questions/questions.js similarity index 97% rename from erpnext/knowledge_base/page/questions/questions.js rename to erpnext/utilities/page/questions/questions.js index 5d2820aeef..6992fa1455 100644 --- a/erpnext/knowledge_base/page/questions/questions.js +++ b/erpnext/utilities/page/questions/questions.js @@ -88,7 +88,7 @@ function KnowledgeBase(w) { // add a new question to the database this.add_question = function(suggest_list) { - $c_page('knowledge_base', 'questions', 'add_question', { + $c_page('utilities', 'questions', 'add_question', { question: this.search.value, suggest: suggest_list }, function(r,rt) { @@ -219,4 +219,4 @@ KBQuestion = function(parent, det, kb) { this.make() } -wn.require('erpnext/knowledge_base/page/kb_common/kb_common.js'); \ No newline at end of file +wn.require('erpnext/utilities/page/kb_common/kb_common.js'); diff --git a/erpnext/knowledge_base/page/questions/questions.py b/erpnext/utilities/page/questions/questions.py similarity index 100% rename from erpnext/knowledge_base/page/questions/questions.py rename to erpnext/utilities/page/questions/questions.py diff --git a/erpnext/knowledge_base/page/questions/questions.txt b/erpnext/utilities/page/questions/questions.txt similarity index 93% rename from erpnext/knowledge_base/page/questions/questions.txt rename to erpnext/utilities/page/questions/questions.txt index 1ca11ffebb..8231625cb3 100644 --- a/erpnext/knowledge_base/page/questions/questions.txt +++ b/erpnext/utilities/page/questions/questions.txt @@ -13,7 +13,7 @@ # These values are common for all Page { 'doctype': 'Page', - 'module': 'Knowledge Base', + 'module': 'Utilities', 'name': '__common__', 'page_name': 'Questions', 'standard': 'Yes'