for inst in DBSession query Job print inst parent is inst parent and c

1
2
for inst in DBSession.query(Job):
print inst, ' parent is ', inst.parent, ' and childs are ', inst.subjobs