diff --git a/webnotes/__init__.py b/webnotes/__init__.py index df30cb4e43..0ddd63d567 100644 --- a/webnotes/__init__.py +++ b/webnotes/__init__.py @@ -22,7 +22,10 @@ local = Local() class _dict(dict): """dict like object that exposes keys as attributes""" def __getattr__(self, key): - return self.get(key) + ret = self.get(key) + if not ret and key.startswith("__"): + raise AttributeError() + return ret def __setattr__(self, key, value): self[key] = value def __getstate__(self): diff --git a/webnotes/boot.py b/webnotes/boot.py index f52cc810ca..10779c7ee4 100644 --- a/webnotes/boot.py +++ b/webnotes/boot.py @@ -69,7 +69,6 @@ def get_bootinfo(): from webnotes.model.utils import compress bootinfo['docs'] = compress(bootinfo['docs']) - # deal with __slots__ in lang if bootinfo.lang: bootinfo.lang = unicode(bootinfo.lang) diff --git a/webnotes/cli.py b/webnotes/cli.py index 88d055c028..a2c2fb9f43 100755 --- a/webnotes/cli.py +++ b/webnotes/cli.py @@ -240,7 +240,6 @@ def use(): @cmd def install(db_name, root_login="root", root_password=None, source_sql=None, admin_password = 'admin', verbose=True, force=False, site_config=None, reinstall=False): - print db_name, source_sql from webnotes.installer import install_db, install_app, make_site_dirs install_db(root_login=root_login, root_password=root_password, db_name=db_name, source_sql=source_sql, admin_password = admin_password, verbose=verbose, force=force, site_config=site_config, reinstall=reinstall) diff --git a/webnotes/core/doctype/bulk_email/bulk_email.txt b/webnotes/core/doctype/bulk_email/bulk_email.txt index 11c747500f..c47da6d4d3 100644 --- a/webnotes/core/doctype/bulk_email/bulk_email.txt +++ b/webnotes/core/doctype/bulk_email/bulk_email.txt @@ -2,7 +2,7 @@ { "creation": "2012-08-02 15:17:28", "docstatus": 0, - "modified": "2013-12-20 19:23:58", + "modified": "2014-02-12 21:11:05", "modified_by": "Administrator", "owner": "Administrator" }, @@ -55,7 +55,7 @@ { "doctype": "DocField", "fieldname": "message", - "fieldtype": "Text", + "fieldtype": "Long Text", "label": "Message" }, { diff --git a/webnotes/core/page/desktop/desktop.js b/webnotes/core/page/desktop/desktop.js index 1dbdbba70a..67850e64da 100644 --- a/webnotes/core/page/desktop/desktop.js +++ b/webnotes/core/page/desktop/desktop.js @@ -132,7 +132,7 @@ wn.desktop.show_all_modules = function() { var module = wn.modules[m]; if(module.link && desktop_items.indexOf(m)!==-1) { module.app_icon = wn.ui.app_icon.get_html(m, true); - $(repl('
\ + $(repl('
\
\ \
\ diff --git a/webnotes/model/doc.py b/webnotes/model/doc.py index febd4c5707..fdd4831378 100755 --- a/webnotes/model/doc.py +++ b/webnotes/model/doc.py @@ -178,6 +178,8 @@ class Document: elif self.fields.has_key(name): return self.fields[name] else: + if name.startswith("__"): + raise AttributeError() return '' def get(self, name, value=None): diff --git a/webnotes/templates/base.html b/webnotes/templates/base.html index 49a4ec9e40..16d79ce870 100644 --- a/webnotes/templates/base.html +++ b/webnotes/templates/base.html @@ -7,8 +7,8 @@ - - + + {% block head -%} {%- if meta_description is defined -%} @@ -49,12 +49,17 @@ -
@@ -68,9 +73,6 @@ {%- endblock -%}
- {%- block content -%}{{ content }}{%- endblock -%}
diff --git a/webnotes/templates/emails/standard.html b/webnotes/templates/emails/standard.html index 3a3381b454..aabe51d5ce 100644 --- a/webnotes/templates/emails/standard.html +++ b/webnotes/templates/emails/standard.html @@ -78,6 +78,19 @@ body { padding:10px 0; } +.left-padding { + padding-left: 10px; +} + +.breadcrumb { + list-style: none; +} + +.breadcrumb > li { + display: inline-block; + margin-left: 0px; + margin-right: 5px; +} /* ------------------------------------- BODY @@ -183,6 +196,19 @@ table.footer-wrap a{ width: 100%; } +a.no-decoration { + text-decoration: none; + color: inherit; +} + +small, .small { + font-size: 85%; +} + +.text-muted { + color: #999999; +} + @@ -240,7 +266,7 @@ table.footer-wrap a{
- + \ No newline at end of file diff --git a/webnotes/templates/includes/footer.html b/webnotes/templates/includes/footer.html index b02a4e66d5..b08c8f0ff5 100644 --- a/webnotes/templates/includes/footer.html +++ b/webnotes/templates/includes/footer.html @@ -10,8 +10,6 @@ {% endfor %}
-
- Login
diff --git a/webnotes/templates/includes/inline_post.html b/webnotes/templates/includes/inline_post.html index ac9c547763..df584b0235 100644 --- a/webnotes/templates/includes/inline_post.html +++ b/webnotes/templates/includes/inline_post.html @@ -5,13 +5,13 @@ data-name="{{ post.name }}" data-group="{{ post.website_group }}" itemscope itemtype="http://schema.org/Article"> - +
{%- if not post.parent_post -%}

- {%- if view != "post" -%} + {%- if view.name != "post" -%} {{ post.title }} {%- else -%} diff --git a/webnotes/templates/includes/navbar.html b/webnotes/templates/includes/navbar.html index 9a5ecb1d0c..10893aafcf 100644 --- a/webnotes/templates/includes/navbar.html +++ b/webnotes/templates/includes/navbar.html @@ -66,7 +66,7 @@ -

diff --git a/webnotes/templates/includes/sidebar.html b/webnotes/templates/includes/sidebar.html index 0a76a98b81..899a43b80b 100644 --- a/webnotes/templates/includes/sidebar.html +++ b/webnotes/templates/includes/sidebar.html @@ -1,7 +1,7 @@ {% if children -%} {%- for child in children -%}