diff --git a/README.md b/README.md index 154f68aec9..a6eb09709d 100644 --- a/README.md +++ b/README.md @@ -8,20 +8,29 @@ Projects: [erpnext](http://erpnext.org) | [webnotes/erpnext](https://github.com/ To start a new project, in the application root: -Note: +Install: -1. wnframework must be called as `lib` -1. your application must be called as `app` +1. Install webnotes and treemapper -Finally: + $ git clone git@github.com:webnotes/wnframework lib + $ git clone git@github.com:webnotes/[your app] app + $ lib/wnf.py --make_conf + $ lib/wnf.py --reinstall - $ git clone git@github.com:webnotes/wnframework lib - $ git clone git@github.com:webnotes/[your app] app - $ lib/wnf.py --make_conf - $ lib/wnf.py --reinstall +1. Setup Apache Conf enjoy! + +#### Export + +Before pushing, export install fixtures + + $ lib/wnf.py --export_doclist "Website Settings" - app/startup/website_settings.json + $ lib/wnf.py --export_doclist "Style Settings" - app/startup/style_settings.json + $ lib/wnf.py --export_csv "Tree Species" app/startup/Tree_Species.csv + $ lib/wnf.py --export_csv "Tree Family" app/startup/Tree_Family.csv + ## wnf.py `$ lib/wnf.py --help` for more info diff --git a/core/page/data_import_tool/data_import_tool.py b/core/page/data_import_tool/data_import_tool.py index 0f2dbf514a..128fc1c9c1 100644 --- a/core/page/data_import_tool/data_import_tool.py +++ b/core/page/data_import_tool/data_import_tool.py @@ -33,12 +33,9 @@ def get_doctype_options(): webnotes.model.doctype.get(doctype))) @webnotes.whitelist() -def get_template(): +def get_template(doctype=None, parent_doctype=None, all_doctypes="No", with_data="No"): webnotes.check_admin_or_system_manager() - doctype = webnotes.form_dict.doctype - parenttype = webnotes.form_dict.parent_doctype - all_doctypes = webnotes.form_dict.all_doctypes=="Yes" - with_data = webnotes.form_dict.with_data + all_doctypes = all_doctypes=="Yes" column_start_end = {} if all_doctypes: @@ -52,8 +49,8 @@ def get_template(): w.writerow(['Data Import Template']) w.writerow([data_keys.main_table, doctype]) - if parenttype != doctype: - w.writerow([data_keys.parent_table, parenttype]) + if parent_doctype != doctype: + w.writerow([data_keys.parent_table, parent_doctype]) else: w.writerow(['']) @@ -199,7 +196,7 @@ def get_template(): w.writerow(row) w = UnicodeWriter() - key = 'parent' if parenttype != doctype else 'name' + key = 'parent' if parent_doctype != doctype else 'name' add_main_header() diff --git a/core/page/desktop/desktop.js b/core/page/desktop/desktop.js index 8800e3881a..a0e9e07441 100644 --- a/core/page/desktop/desktop.js +++ b/core/page/desktop/desktop.js @@ -37,7 +37,11 @@ wn.core.pages.desktop.render = function() { \