diff options
author | Martin Sivak <msivak@redhat.com> | 2010-08-23 17:14:12 +0200 |
---|---|---|
committer | Martin Sivak <msivak@redhat.com> | 2010-08-23 17:14:12 +0200 |
commit | f273fe2502adf3023d816c9f495fad12140c9ddb (patch) | |
tree | 838d62667b77164a9dfb6950b3c02fabb9c102b0 /pyfirstaidkit/plugins.py | |
parent | eb7edf408825a0979318bff3929ea94111d560f4 (diff) | |
download | firstaidkit-f273fe2502adf3023d816c9f495fad12140c9ddb.tar.gz firstaidkit-f273fe2502adf3023d816c9f495fad12140c9ddb.tar.xz firstaidkit-f273fe2502adf3023d816c9f495fad12140c9ddb.zip |
Fix flow initialization, use deepcopy to create copied flow structures
Diffstat (limited to 'pyfirstaidkit/plugins.py')
-rw-r--r-- | pyfirstaidkit/plugins.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyfirstaidkit/plugins.py b/pyfirstaidkit/plugins.py index bf55df7..303cfc9 100644 --- a/pyfirstaidkit/plugins.py +++ b/pyfirstaidkit/plugins.py @@ -41,7 +41,7 @@ class Flow(dict): @staticmethod def init(parent): - flows = copy(parent.flows) + flows = deepcopy(parent.flows) return flows class Plugin(object): @@ -568,7 +568,7 @@ class PluginSystem(object): #get best title gt = trans.lgettext(flowname) if trans else flowname title = gt if gt != flowname else flow.title - + self._flow_titles[flowname] = title #set title for flow with no title |