diff --git a/css/all-app.css b/css/all-app.css index f13ef939978..563045e26f4 100644 --- a/css/all-app.css +++ b/css/all-app.css @@ -10,12 +10,29 @@ html { body { margin: 0px; padding: 0px; - font-family: Arial, Helvetica, Sans; font-size: 14px; color: #000; background-color: #e2e2e2; } +/* font settings */ + +h1, h2, h3, h4, h5 { + font-family: "Helvetica Neue", Helvetica, "Helvetica Neue", sans-serif; + font-weight: normal; + margin-top: 0.2em; +} + +body { + font-family: "Helvetica Neue", Helvetica, "Helvetica Neue", sans-serif; + font-size: 13px; +} + +span, div, td, input, textarea, button, select { + font-family: inherit; +} + + pre { margin: 0px; padding: 0px; } button { margin: 2px; margin-left: 0px; } diff --git a/css/all-web.css b/css/all-web.css index c1f10d7917d..40fadb11c69 100644 --- a/css/all-web.css +++ b/css/all-web.css @@ -10,12 +10,29 @@ html { body { margin: 0px; padding: 0px; - font-family: Arial, Helvetica, Sans; font-size: 14px; color: #000; background-color: #e2e2e2; } +/* font settings */ + +h1, h2, h3, h4, h5 { + font-family: "Helvetica Neue", Helvetica, "Helvetica Neue", sans-serif; + font-weight: normal; + margin-top: 0.2em; +} + +body { + font-family: "Helvetica Neue", Helvetica, "Helvetica Neue", sans-serif; + font-size: 13px; +} + +span, div, td, input, textarea, button, select { + font-family: inherit; +} + + pre { margin: 0px; padding: 0px; } button { margin: 2px; margin-left: 0px; } diff --git a/erpnext/utilities/doctype/todo/__init__.py b/erpnext/utilities/doctype/todo/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/erpnext/utilities/doctype/todo/todo.txt b/erpnext/utilities/doctype/todo/todo.txt deleted file mode 100644 index 569e4be1d21..00000000000 --- a/erpnext/utilities/doctype/todo/todo.txt +++ /dev/null @@ -1,213 +0,0 @@ -# DocType, ToDo -[ - - # These values are common in all dictionaries - { - 'creation': '2012-03-27 14:36:47', - 'docstatus': 0, - 'modified': '2012-03-27 14:36:47', - 'modified_by': u'Administrator', - 'owner': u'Administrator' - }, - - # These values are common for all DocType - { - 'allow_attach': 0, - 'allow_copy': 0, - 'allow_email': 0, - 'allow_print': 0, - 'allow_rename': 0, - 'allow_trash': 0, - 'autoname': u'TDI.########', - 'colour': u'White:FFF', - 'doctype': 'DocType', - 'hide_heading': 0, - 'hide_toolbar': 0, - 'in_create': 1, - 'in_dialog': 0, - 'is_transaction_doc': 0, - 'issingle': 0, - 'max_attachments': 0, - 'module': u'Utilities', - 'name': '__common__', - 'read_only': 1, - 'read_only_onload': 0, - 'section_style': u'Simple', - 'server_code_error': u' ', - 'show_in_menu': 0, - 'use_template': 0, - 'version': 5 - }, - - # These values are common for all DocField - { - 'doctype': u'DocField', - 'name': '__common__', - 'parent': u'ToDo', - 'parentfield': u'fields', - 'parenttype': u'DocType', - 'permlevel': 0 - }, - - # These values are common for all DocPerm - { - 'create': 1, - 'doctype': u'DocPerm', - 'name': '__common__', - 'parent': u'ToDo', - 'parentfield': u'permissions', - 'parenttype': u'DocType', - 'permlevel': 0, - 'read': 1, - 'role': u'All', - 'write': 1 - }, - - # DocType, ToDo - { - 'doctype': 'DocType', - 'name': u'ToDo' - }, - - # DocPerm - { - 'doctype': u'DocPerm' - }, - - # DocField - { - 'allow_on_submit': 0, - 'doctype': u'DocField', - 'fieldname': u'description', - 'fieldtype': u'Text', - 'hidden': 0, - 'in_filter': 0, - 'label': u'Description', - 'no_copy': 0, - 'oldfieldname': u'description', - 'oldfieldtype': u'Text', - 'print_hide': 0, - 'report_hide': 0, - 'reqd': 0, - 'search_index': 0, - 'width': u'300px' - }, - - # DocField - { - 'allow_on_submit': 0, - 'doctype': u'DocField', - 'fieldname': u'date', - 'fieldtype': u'Date', - 'hidden': 0, - 'in_filter': 0, - 'label': u'Date', - 'no_copy': 0, - 'oldfieldname': u'date', - 'oldfieldtype': u'Date', - 'print_hide': 0, - 'report_hide': 0, - 'reqd': 0, - 'search_index': 0 - }, - - # DocField - { - 'allow_on_submit': 0, - 'doctype': u'DocField', - 'fieldname': u'priority', - 'fieldtype': u'Data', - 'hidden': 0, - 'in_filter': 0, - 'label': u'Priority', - 'no_copy': 0, - 'oldfieldname': u'priority', - 'oldfieldtype': u'Data', - 'print_hide': 0, - 'report_hide': 0, - 'reqd': 0, - 'search_index': 0 - }, - - # DocField - { - 'allow_on_submit': 0, - 'doctype': u'DocField', - 'fieldname': u'reference_type', - 'fieldtype': u'Data', - 'hidden': 0, - 'in_filter': 0, - 'label': u'Reference Type', - 'no_copy': 0, - 'oldfieldname': u'reference_type', - 'oldfieldtype': u'Data', - 'print_hide': 0, - 'report_hide': 0, - 'reqd': 0, - 'search_index': 0 - }, - - # DocField - { - 'allow_on_submit': 0, - 'doctype': u'DocField', - 'fieldname': u'reference_name', - 'fieldtype': u'Data', - 'hidden': 0, - 'in_filter': 0, - 'label': u'Reference Name', - 'no_copy': 0, - 'oldfieldname': u'reference_name', - 'oldfieldtype': u'Data', - 'print_hide': 0, - 'report_hide': 0, - 'reqd': 0, - 'search_index': 0 - }, - - # DocField - { - 'allow_on_submit': 0, - 'doctype': u'DocField', - 'fieldname': u'checked', - 'fieldtype': u'Check', - 'hidden': 0, - 'in_filter': 0, - 'label': u'Checked', - 'no_copy': 0, - 'oldfieldname': u'checked', - 'oldfieldtype': u'Check', - 'print_hide': 0, - 'report_hide': 0, - 'reqd': 0, - 'search_index': 0 - }, - - # DocField - { - 'allow_on_submit': 0, - 'doctype': u'DocField', - 'fieldname': u'role', - 'fieldtype': u'Link', - 'hidden': 0, - 'in_filter': 0, - 'label': u'Role', - 'no_copy': 0, - 'oldfieldname': u'role', - 'oldfieldtype': u'Link', - 'options': u'Role', - 'print_hide': 0, - 'report_hide': 0, - 'reqd': 0, - 'search_index': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'assigned_by', - 'fieldtype': u'Link', - 'label': u'Assigned By', - 'options': u'Profile' - } -] \ No newline at end of file diff --git a/index.cgi b/index.cgi index e59723937d2..31da310c7a6 100755 --- a/index.cgi +++ b/index.cgi @@ -28,13 +28,15 @@ cgitb.enable() # import libs sys.path.append('.') + +import conf + sys.path.append('lib/py') -sys.path.append('erpnext') +sys.path.append(conf.modules_path) import webnotes import webnotes.handler import webnotes.auth -import webnotes.defs def init(): # make the form_dict @@ -49,7 +51,7 @@ def init(): except webnotes.AuthenticationError, e: return True except webnotes.UnknownDomainError, e: - print "Location: " + (webnotes.defs.redirect_404) + print "Location: " + (conf.redirect_404) except webnotes.SessionStopped, e: if 'cmd' in webnotes.form_dict: webnotes.handler.print_json() diff --git a/js/all-app.js b/js/all-app.js index 8cd81615c68..3fe004388b8 100644 --- a/js/all-app.js +++ b/js/all-app.js @@ -262,7 +262,7 @@ this.prepare_opts();$.extend(this,this.opts);$(this.parent).html(repl('\ \ \ \ -