[FIX] web: set_cache want unicode when caching css
This commit is contained in:
parent
820d6aa760
commit
e75e2ce2e5
|
@ -204,6 +204,9 @@
|
||||||
opacity: 0.75;
|
opacity: 0.75;
|
||||||
top: 26px;
|
top: 26px;
|
||||||
}
|
}
|
||||||
|
:root .openerp .oe_kanban_view .oe_kanban_group_title_vertical {
|
||||||
|
writing-mode: lr-tb\9;
|
||||||
|
}
|
||||||
.openerp .oe_kanban_view .oe_kanban_add, .openerp .oe_kanban_view .oe_kanban_header .oe_dropdown_toggle {
|
.openerp .oe_kanban_view .oe_kanban_add, .openerp .oe_kanban_view .oe_kanban_header .oe_dropdown_toggle {
|
||||||
margin-left: 4px;
|
margin-left: 4px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
|
@ -859,7 +859,7 @@ function getColor(val, pct, col, noGradient, custSec) {
|
||||||
|
|
||||||
/** Fix Raphael display:none tspan dy attribute bug */
|
/** Fix Raphael display:none tspan dy attribute bug */
|
||||||
function setDy(elem, fontSize, txtYpos) {
|
function setDy(elem, fontSize, txtYpos) {
|
||||||
if ((!ie || ie > 9) && elem.node.firstChild.attributes.dy) {
|
if ((!ie || ie > 8) && elem.node.firstChild.attributes.dy) {
|
||||||
elem.node.firstChild.attributes.dy.value = 0;
|
elem.node.firstChild.attributes.dy.value = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -943,4 +943,4 @@ var ie = (function(){
|
||||||
all[0]
|
all[0]
|
||||||
);
|
);
|
||||||
return v > 4 ? v : undef;
|
return v > 4 ? v : undef;
|
||||||
}());
|
}());
|
||||||
|
|
|
@ -1238,8 +1238,8 @@ class AssetsBundle(object):
|
||||||
if len(pages) == 1:
|
if len(pages) == 1:
|
||||||
pages = []
|
pages = []
|
||||||
for idx, page in enumerate(pages):
|
for idx, page in enumerate(pages):
|
||||||
self.set_cache("css.%d" % (idx+1), ''.join(page))
|
self.set_cache("css.%d" % (idx+1), u''.join(page))
|
||||||
content = '\n'.join(css_url % i for i in range(1,len(pages)+1))
|
content = u'\n'.join(css_url % i for i in range(1,len(pages)+1))
|
||||||
self.set_cache("css.0", content)
|
self.set_cache("css.0", content)
|
||||||
if not content:
|
if not content:
|
||||||
return self.css()
|
return self.css()
|
||||||
|
|
Loading…
Reference in New Issue