diff options
author | David Reyna <David.Reyna@windriver.com> | 2014-03-14 00:26:32 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-25 11:17:32 +0000 |
commit | 4f02193f050666ff70821a6d8ef2ac2a744ef3fd (patch) | |
tree | 5c21c7fb000e0a48922ceccce31328b9c8bcf596 /bitbake/lib/toaster/toastergui/templatetags | |
parent | 604d2c8df30b0139704991703b99ae9039c0f342 (diff) | |
download | poky-4f02193f050666ff70821a6d8ef2ac2a744ef3fd.tar.gz |
bitbake: toaster: warn new filter replaces existing filter
If the user pop-ups a filter dialog when another filter is already
active, warn the user that the new filter would replace the
previous filter.
[YOCTO #5960]
(Bitbake rev: 6be58123fcdb0ff20de2a88315e1e3012effd1d3)
Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templatetags')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templatetags/projecttags.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/templatetags/projecttags.py b/bitbake/lib/toaster/toastergui/templatetags/projecttags.py index e7b23cbff2..39e92ce776 100644 --- a/bitbake/lib/toaster/toastergui/templatetags/projecttags.py +++ b/bitbake/lib/toaster/toastergui/templatetags/projecttags.py | |||
@@ -189,6 +189,12 @@ def string_slice(strvar,slicevar): | |||
189 | return strvar[int(first):int(last)] | 189 | return strvar[int(first):int(last)] |
190 | 190 | ||
191 | @register.filter | 191 | @register.filter |
192 | def string_remove_regex(value,ex): | ||
193 | """ remove sub-string of string that matches regex | ||
194 | """ | ||
195 | return re.sub(ex, '', value) | ||
196 | |||
197 | @register.filter | ||
192 | def filtered_installedsize(size, installed_size): | 198 | def filtered_installedsize(size, installed_size): |
193 | """If package.installed_size not null and not empty return it, | 199 | """If package.installed_size not null and not empty return it, |
194 | else return package.size | 200 | else return package.size |