Example #1
0
 def __init__(self, contents=None, **kwargs):
   VLibNode.__init__(self, **kwargs)
   if contents is not None:
     self._contents = contents
   else:
     self._contents = []
   self._pos = 0
Example #2
0
    def __init__(self, dbResults, fpColName="AutoFragmentFp", usePickles=True):
        """

      DbResults should be a subclass of Dbase.DbResultSet.DbResultBase

    """
        VLibNode.__init__(self)
        self._usePickles = usePickles
        self._data = dbResults
        self._fpColName = fpColName.upper()
        self._colNames = [x.upper() for x in self._data.GetColumnNames()]
        if self._fpColName not in self._colNames:
            raise ValueError('fp column name "%s" not found in result set: %s' % (self._fpColName, str(self._colNames)))
        self.fpCol = self._colNames.index(self._fpColName)
        del self._colNames[self.fpCol]
        self._colNames = tuple(self._colNames)
        self._numProcessed = 0
Example #3
0
  def __init__(self,dbResults,fpColName='AutoFragmentFp',usePickles=True):
    """

      DbResults should be a subclass of Dbase.DbResultSet.DbResultBase

    """
    VLibNode.__init__(self)
    self._usePickles = usePickles
    self._data = dbResults
    self._fpColName = fpColName.upper()
    self._colNames = [x.upper() for x in self._data.GetColumnNames()]
    if self._fpColName not in self._colNames:
      raise ValueError,'fp column name "%s" not found in result set: %s'%(self._fpColName,str(self._colNames))
    self.fpCol = self._colNames.index(self._fpColName)
    del self._colNames[self.fpCol]
    self._colNames = tuple(self._colNames)
    self._numProcessed=0
Example #4
0
 def __init__(self, dest=None, strFunc=None, **kwargs):
   VLibNode.__init__(self, **kwargs)
   self._dest = dest
   self._func = strFunc
Example #5
0
 def __init__(self, func=None, negate=0, **kwargs):
     VLibNode.__init__(self, **kwargs)
     self._func = func
     self._negate = negate
Example #6
0
 def __init__(self, func=None, negate=0, **kwargs):
     VLibNode.__init__(self, **kwargs)
     self._func = func
     self._negate = negate
Example #7
0
 def __init__(self, func=None, **kwargs):
   VLibNode.__init__(self, **kwargs)
   self._func = func
Example #8
0
 def __init__(self,func=None,**kwargs):
   VLibNode.__init__(self,**kwargs)
   self._func = func