Skip to content

Commit

Permalink
#258 Removed option to set with_dbpath for QueryBuilder, for now the …
Browse files Browse the repository at this point in the history
…setting is with_dbpath=False. The whole option needs to be removed asap
  • Loading branch information
lekah committed Jun 1, 2017
1 parent 408b21a commit f5c5317
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions aiida/orm/querybuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ def __init__(self, *args, **kwargs):

# The internal _with_dbpath attributes reports whether I need to do something with the path.
# I.e. check, loads, etc, implementation left to backend implementation.
self.set_with_dbpath(kwargs.pop('with_dbpath', True))
kwargs.pop('with_dbpath', False)
self.set_with_dbpath(False)
# Whether expanding the path when using recursive functionality
self.set_expand_path(kwargs.pop('expand_path',False))

Expand Down Expand Up @@ -1094,8 +1095,8 @@ def set_with_dbpath(self, l_with_dbpath):
if not isinstance(l_with_dbpath, bool):
raise InputValidationError("I expect a boolean")
self._with_dbpath = l_with_dbpath
if self._with_dbpath:
self._impl.prepare_with_dbpath()
#~ if self._with_dbpath:
#~ self._impl.prepare_with_dbpath()
return self

def set_expand_path(self, l_expand_path):
Expand Down

0 comments on commit f5c5317

Please sign in to comment.