Fixes in less

This commit is contained in:
Anand Doshi 2015-02-26 16:06:31 +05:30
parent 9b217ecaeb
commit 0f6bf727d8
10 changed files with 30 additions and 8 deletions

View file

@ -27,7 +27,7 @@ class FrappeClient(object):
'pwd': password
})
if r.json().get('message') == "Logged In":
if r.status_code==200 and r.json().get('message') == "Logged In":
return r.json()
else:
raise AuthError
@ -49,7 +49,6 @@ class FrappeClient(object):
if limit_page_length:
params["limit_start"] = limit_start
params["limit_page_length"] = limit_page_length
print self.url
res = self.session.get(self.url + "/api/resource/" + doctype, params=params)
return self.post_process(res)
@ -151,6 +150,9 @@ class FrappeClient(object):
print "inserting " + doctype
for doc in docs:
if not doc.get("owner"):
doc["owner"] = "Administrator"
if not frappe.db.exists("User", doc.get("owner")):
frappe.get_doc({"doctype": "User", "email": doc.get("owner"),
"first_name": doc.get("owner").split("@")[0] }).insert()

View file

@ -75,10 +75,12 @@ a.text-extra-muted:focus {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: inline-block;
max-width: 100%;
vertical-align: middle;
}
.inline-block {
display: inline-block;
}
.bold,
.strong {
font-weight: bold;

View file

@ -75,10 +75,12 @@ a.text-extra-muted:focus {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: inline-block;
max-width: 100%;
vertical-align: middle;
}
.inline-block {
display: inline-block;
}
.bold,
.strong {
font-weight: bold;

View file

@ -91,4 +91,5 @@
.toolbar-user-fullname {
margin-top: 2px;
max-width: 200px;
display: inline-block;
}

View file

@ -75,10 +75,12 @@ a.text-extra-muted:focus {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: inline-block;
max-width: 100%;
vertical-align: middle;
}
.inline-block {
display: inline-block;
}
.bold,
.strong {
font-weight: bold;
@ -407,6 +409,10 @@ fieldset {
padding-bottom: 20px;
border-right: 1px solid #d1d8dd;
}
.page-content hr {
margin-left: -15px;
margin-right: -15px;
}
.page-sidebar {
border-left: 1px solid #d1d8dd;
padding: 0px 15px;

View file

@ -69,11 +69,14 @@ a.text-extra-muted:focus {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: inline-block;
max-width: 100%;
vertical-align: middle;
}
.inline-block {
display: inline-block;
}
.bold,
.strong {
font-weight: bold;

View file

@ -97,4 +97,5 @@
.toolbar-user-fullname {
margin-top: 2px;
max-width: 200px;
display: inline-block;
}

View file

@ -146,6 +146,11 @@ fieldset {
border-right: 1px solid @border-color;
}
.page-content hr {
margin-left: -15px;
margin-right: -15px;
}
.page-sidebar {
border-left: 1px solid @border-color;
padding: 0px 15px;

View file

@ -13,7 +13,7 @@ def get_context(context):
script_context = { "javascript": frappe.db.get_value('Website Script', None, 'javascript') }
theme = get_active_theme()
js = strip(theme.js or "")
js = strip(theme and theme.js or "")
if js:
script_context["javascript"] += "\n" + js

View file

@ -17,7 +17,7 @@ termcolor
werkzeug
semantic_version
rauth>=0.6.2
requests>=1.2.3
requests
celery
redis
selenium