DataPipeline/Base.py
def openRaw(self, filename=None, callback=None):
        """Open raw file, display preview and get some info about them"""

        if not os.path.exists(filename):
            return None

        if os.path.splitext(filename)[1] == '.xls':
            lines = self.openExcel(filename)
        else:
            fd=open(filename)
            lines = fd.readlines()
            fd.close()
        if lines == None:
            return None

        print 'opened file %s' %filename
        self.filename = filename
        self.addtoQueue(filename)
        self.filename = filename
        self.lines = lines
        return lines
Open raw file, display preview and get some info about them
Open raw file, display preview and get some info about them
Open raw file display preview and get some info about them
def openRaw(self, filename=None, callback=None):
        if not os.path.exists(filename):
            return None
        if os.path.splitext(filename)[1] == '.xls':
            lines = self.openExcel(filename)
        else:
            fd=open(filename)
            lines = fd.readlines()
            fd.close()
        if lines == None:
            return None
        print 'opened file %s' %filename
        self.filename = filename
        self.addtoQueue(filename)
        self.filename = filename
        self.lines = lines
        return lines
def openRaw ( self , filename = None , callback = None ) : if not os . path . exists ( filename ) : return None if os . path . splitext ( filename ) [ 1 ] == '.xls' : lines = self . openExcel ( filename ) else : fd = open ( filename ) lines = fd . readlines ( ) fd . close ( ) if lines == None : return None print 'opened file %s' % filename self . filename = filename self . addtoQueue ( filename ) self . filename = filename self . lines = lines return lines
Open raw file, display preview and get some info about them
Open raw file display preview and get some info about them
"""Open raw file, display preview and get some info about them"""
self
filename
callback