Commit 03bc3c67 authored by Arnaud Fontaine's avatar Arnaud Fontaine

TODO

parent 663025de
...@@ -133,8 +133,12 @@ class TemplateTool (BaseTool): ...@@ -133,8 +133,12 @@ class TemplateTool (BaseTool):
if state == 'installed': if state == 'installed':
return bt return bt
if state == 'not_installed': if state == 'not_installed':
last_transition = bt.workflow_history \ # XXX-TODO-BEFORE-MERGE
['business_template_installation_workflow'][-1] try:
last_transition = bt.workflow_history \
['business_template_installation_workflow'][-1]
except AttributeError:
continue
if last_transition['action'] == 'uninstall': # There is not uninstalled state ! if last_transition['action'] == 'uninstall': # There is not uninstalled state !
t = last_transition['time'] t = last_transition['time']
if last_time < t: if last_time < t:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment