From a12e1b02ae6455df4ea5e33b909d38a75fb06ff7 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Fri, 15 May 2015 12:43:55 +0530 Subject: [PATCH] [hot] roles cache boo-boo and mobile styles --- frappe/public/css/mobile.css | 11 +++++++---- frappe/public/less/mobile.less | 16 ++++++++++++---- frappe/sessions.py | 4 ++-- 3 files changed, 21 insertions(+), 10 deletions(-) diff --git a/frappe/public/css/mobile.css b/frappe/public/css/mobile.css index b1387ae96e..c57cec413c 100644 --- a/frappe/public/css/mobile.css +++ b/frappe/public/css/mobile.css @@ -152,9 +152,6 @@ body { .form-page .form-control:focus { box-shadow: none; } - .form-page select.form-control { - text-indent: -2px; - } .timeline { border-left: none !important; border-right: none !important; @@ -203,7 +200,13 @@ body { width: 100%; } .doclist-row .list-row-right.no-right-column .list-row-indicator { - top: 0; + top: 5; + } + .doclist-row .list-row-right.no-right-column .list-row-indicator .indicator::before, + .doclist-row .list-row-right.no-right-column .list-row-indicator .indicator::after { + height: 14px; + width: 14px; + border-radius: 13px; } body[data-route^="messages"] .navbar-center { display: block !important; diff --git a/frappe/public/less/mobile.less b/frappe/public/less/mobile.less index dac6110237..44ec90db7b 100644 --- a/frappe/public/less/mobile.less +++ b/frappe/public/less/mobile.less @@ -131,9 +131,9 @@ box-shadow: none; } - select.form-control { - text-indent: -2px; - } + // select.form-control { + // text-indent: -2px; + // } } // timeline @@ -197,7 +197,15 @@ width: 100%; .list-row-indicator { - top: 0; + top: 5; + + // bigger indicators for list + .indicator::before, .indicator::after { + height: 14px; + width: 14px; + border-radius: 13px; + } + } } } diff --git a/frappe/sessions.py b/frappe/sessions.py index 0f8ca74012..7af58742ee 100644 --- a/frappe/sessions.py +++ b/frappe/sessions.py @@ -31,7 +31,7 @@ def clear_cache(user=None): cache = frappe.cache() groups = ("bootinfo", "user_recent", "user_roles", "user_doc", "lang", - "time_zone", "defaults", "user_permissions") + "time_zone", "defaults", "user_permissions", "roles") if user: for name in groups: @@ -223,7 +223,7 @@ class Session: session_data.get("last_updated")) expiry = self.get_expiry_in_seconds(session_data.get("session_expiry")) frappe.session.user = None - + if self.time_diff > expiry: self.delete_session() data = None