diff options
author | Michael Wood <michael.g.wood@intel.com> | 2015-06-18 14:11:28 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-06-26 09:27:33 +0100 |
commit | 93c54c2f9d708727116451a346b13e7e5a74577e (patch) | |
tree | efe1941024f78e61f22b99c0dd19bc9ce53f860d /bitbake | |
parent | f28116ec108ec0651dac9956707358aac00fef13 (diff) | |
download | poky-93c54c2f9d708727116451a346b13e7e5a74577e.tar.gz |
bitbake: toaster: Enable toastertable cache
Enable the cache and fix warning on the toastertable cache which happens
on the memcache backend "CacheKeyWarning: Cache key contains characters that
will cause errors if used with memcached"
(Bitbake rev: 330692e4e2e4dea59f70caa03001905ffff4860a)
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/toaster/toastergui/widgets.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/widgets.py b/bitbake/lib/toaster/toastergui/widgets.py index f5a1b3e7b9..e257c702eb 100644 --- a/bitbake/lib/toaster/toastergui/widgets.py +++ b/bitbake/lib/toaster/toastergui/widgets.py | |||
@@ -36,6 +36,7 @@ import types | |||
36 | import json | 36 | import json |
37 | import collections | 37 | import collections |
38 | import operator | 38 | import operator |
39 | import re | ||
39 | 40 | ||
40 | from toastergui.views import objtojson | 41 | from toastergui.views import objtojson |
41 | 42 | ||
@@ -251,10 +252,12 @@ class ToasterTable(TemplateView): | |||
251 | for key, val in kwargs.iteritems(): | 252 | for key, val in kwargs.iteritems(): |
252 | cache_name = cache_name + str(key) + str(val) | 253 | cache_name = cache_name + str(key) + str(val) |
253 | 254 | ||
255 | # No special chars allowed in the cache name | ||
256 | cache_name = re.sub(r'[^A-Za-z0-9]', "", cache_name) | ||
254 | data = cache.get(cache_name) | 257 | data = cache.get(cache_name) |
255 | 258 | ||
256 | #if data: | 259 | if data: |
257 | # return data | 260 | return data |
258 | 261 | ||
259 | self.setup_columns(**kwargs) | 262 | self.setup_columns(**kwargs) |
260 | 263 | ||