예제 #1
0
파일: __init__.py 프로젝트: kellrott/Remus
 def openTable(self, tableName):
     """
     Open a table input from. By default, tables belong to the parents,
     because they have already finished executing
     
     :param tableName: Name of the table to be opened
     
     :return: :class:`remus.db.table.ReadTable`
     
     In the case of a target::
         
         e02d038d-98a3-494a-9a27-c04b4516ced4:/submit_20120110/the_child
     
     The call::
         
         self.openTable('input')
     
     Would open the table::
         
         e02d038d-98a3-494a-9a27-c04b4516ced4:/submit_20120110/input
     
     Because openTable opens in the parent directory (because the parent has already completed)
     
     
     """
     tablePath = db_join(self.__instance__, self.__tablepath__, "..", tableName)
     return self.__manager__._openTable(tablePath.instance, tablePath.table)
예제 #2
0
파일: __init__.py 프로젝트: kellrott/Remus
 def __run__(self):
     tpath = db_join( self.__instance__, self.__tablepath__, "..", self.__keyTable__)
     self.init()
     src = self.__manager__._openTable(tpath.instance, tpath.table)
     print "src", src.getPath()
     for key, val in src:
         print key
         self.map(key, val)
예제 #3
0
파일: __init__.py 프로젝트: kellrott/Remus
 def addFollowTarget(self, child_name, child, depends=None, chdir=None):
     """
     A follow target is a delayed callback, that isn't run until all 
     of a targets children have complete
     """
     if depends is None:
         self.__manager__._addChild(self, child_name, child, depends=self.__tablepath__ + "@follow", chdir=chdir)
     else:
         refs = []
         if isinstance(depends, str):
             depends = [depends]
         for d in depends:
             refs.append(db_join(self.__instance__, self.__tablepath__, d).table)
         self.__manager__._addChild(self, child_name, child, depends=refs, chdir=chdir)
예제 #4
0
파일: __init__.py 프로젝트: kellrott/Remus
 def getcwd(self):
     return db_join(self.__instance__, self.__tablepath__)
예제 #5
0
파일: __init__.py 프로젝트: kellrott/Remus
 def openTable(self, tableName):
     i = db_join(self.__instance__, tableName)
     print "open table:", i
     return self.__manager__._openTable(i.instance, i.table)
예제 #6
0
파일: __init__.py 프로젝트: kellrott/Remus
 def copyFrom(self, path, srcPath):
     srcPath = db_join(self.__instance__, self.__tablepath__, srcPath)
     self.__manager__._copyFrom(path, srcPath)
예제 #7
0
파일: __init__.py 프로젝트: kellrott/Remus
 def copyTo(self, path, dstPath):
     dstPath = db_join(self.__instance__, self.__tablepath__, dstPath)
     self.__manager__._copyTo(path, dstPath)
예제 #8
0
파일: __init__.py 프로젝트: kellrott/Remus
 def createFile(self, dstPath, info = {}):
     dstPath = db_join(self.__instance__, self.__tablepath__, dstPath)
     self.__manager__._createFile(dstPath, info)