Return the calling keyword in get_keywords

issue5612
review22081002
This commit is contained in:
Sergi Almacellas Abellana
2016-06-08 10:08:03 +02:00
parent 749387fa76
commit afce1a29ae
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -1,3 +1,4 @@
* Return the calling keyword in ActionKeyword.get_keywords
* Add customizable login process
* Allow to customize the substitutions used on sequence
* Allow PYSON in tree_invisible attribute
+3 -1
View File
@@ -227,7 +227,9 @@ class ActionKeyword(ModelSQL, ModelView):
type_ = action_keyword.action.type
types[type_].append(action_keyword.action.id)
for type_, action_ids in types.iteritems():
keywords.extend(Action.get_action_values(type_, action_ids))
for value in Action.get_action_values(type_, action_ids):
value['keyword'] = keyword
keywords.append(value)
keywords.sort(key=itemgetter('name'))
cls._get_keyword_cache.set(key, keywords)
return keywords