return types[prop.direction](prop)
class DependencyProcessor(object):
- no_dependencies = False
+ has_dependencies = True
def __init__(self, prop):
self.prop = prop
"""a special DP that works for many-to-one relations, fires off for
child items who have changed their referenced key."""
- no_dependencies = True
+ has_dependencies = False
def register_dependencies(self, uowcommit):
pass
if subtask not in deps_by_targettask:
continue
for dep in deps_by_targettask[subtask]:
- if dep.processor.no_dependencies or not dependency_in_cycles(dep):
+ if not dep.processor.has_dependencies or not dependency_in_cycles(dep):
continue
(processor, targettask) = (dep.processor, dep.targettask)
isdelete = taskelement.isdelete