Skip to content

Commit

Permalink
#258 removed function that prepares the DbPath functionality in the Q…
Browse files Browse the repository at this point in the history
…ueryBuilder
  • Loading branch information
lekah committed Jun 1, 2017
1 parent 4df9f9d commit 08db0bf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions aiida/backends/sqlalchemy/querybuilder_sqla.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,6 @@ def AiidaComputer(self):
import aiida.orm.implementation.sqlalchemy.computer
return aiida.orm.implementation.sqlalchemy.computer.Computer


def prepare_with_dbpath(self):
from aiida.backends.sqlalchemy.models.node import DbPath
self.Path = DbPath

def get_session(self):
return aiida.backends.sqlalchemy.get_scoped_session()

Expand Down
1 change: 0 additions & 1 deletion aiida/orm/implementation/django/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ def _add_dblink_from(self, src, label=None, link_type=LinkType.UNSPECIFIED):
if QueryBuilder().append(
Node, filters={'id':self.pk}, tag='parent').append(
Node, filters={'id':src.pk}, tag='child', descendant_of='parent').count() > 0:
#~ if len(DbPath.objects.filter(parent=self.dbnode, child=src.dbnode)) > 0:
raise ValueError(
"The link you are attempting to create would generate a loop")

Expand Down

0 comments on commit 08db0bf

Please sign in to comment.