Commits

Ronny Pfannschmidt committed e0b348b

add procdir task to steps

  • Participants
  • Parent commits 500ee1d

Comments (0)

Files changed (2)

File glas_process/baseproc.py

         _id=procdir.get_id(steper, _id),
         status='prepared',
         steper=steper,
+        task=procdir.task._id,
         **kw)
 
 class Proc(object):

File glas_process/procdir.py

 class ProcDir(object):
     scminfo = None
 
-    def __init__(self, db, path, job):
+    def __init__(self, db, path, task):
         self.db = db
         self.path = path
-        self.belongs_to = job
+        self.task = task
         self._idcounter = Counter()
 
     def get_id(self, steper, given=None):
         self._idcounter.update([steper])
         print current, steper
         suffix = '_%s' % current if current else ""
-        return '%s:%s%s' % (self.belongs_to._id, steper, suffix)
+        return '%s:%s%s' % (self.task._id, steper, suffix)
 
     def save_with_batch(self, doc):
         return self.db.save_doc(doc, batch='ok')