Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniele Paganelli committed May 2, 2016
1 parent c822d6f commit d9d8f40
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion misura/canon/option/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,14 @@ def add_option(self, *args, **kwargs):
"""Creates a new option using the ao() utility function.
Migrate old one if existing."""
out = {}
overwrite = True
if kwargs.has_key('overwrite'):
overwrite = kwargs.pop('overwrite')
ao(out, *args, **kwargs)
out = out.values()[0]
key = out['handle']
# If option was already defined, update old one with new values
if self.has_key(key):
if self.has_key(key) and overwrite:
origin = self.gete(key).entry
origin.update(out)
out = origin
Expand Down
3 changes: 3 additions & 0 deletions misura/canon/plugin/domains.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ def is_plotted(self, node):
if not self.is_loaded(node):
return False
return len(self.model().is_plotted(node.path)) > 0

def double_clicked(self, node):
return False

def check_node(self, node):
"""Check if node pertain to this domain"""
Expand Down

0 comments on commit d9d8f40

Please sign in to comment.