PEATDB/Ekin/Base.py
def saveProject(self, filename=None):
        """Save data to an ekin project file"""
        if filename == None:
            if not hasattr(self, 'filename') or self.filename==None:
                print 'no filename'
                return
            else:
                filename=self.filename
        self.filename = filename
        if os.path.splitext(filename)[1] != '.ekinprj':
            filename = filename + '.ekinprj'
        data = self.prepare_data()
        fd=open(filename,'w')
        import pickle
        pickle.dump(data, fd)
        fd.close()
        return
Save data to an ekin project file
Save data to an ekin project file
Save data to an ekin project file
def saveProject(self, filename=None):
        if filename == None:
            if not hasattr(self, 'filename') or self.filename==None:
                print 'no filename'
                return
            else:
                filename=self.filename
        self.filename = filename
        if os.path.splitext(filename)[1] != '.ekinprj':
            filename = filename + '.ekinprj'
        data = self.prepare_data()
        fd=open(filename,'w')
        import pickle
        pickle.dump(data, fd)
        fd.close()
        return
def saveProject ( self , filename = None ) : if filename == None : if not hasattr ( self , 'filename' ) or self . filename == None : print 'no filename' return else : filename = self . filename self . filename = filename if os . path . splitext ( filename ) [ 1 ] != '.ekinprj' : filename = filename + '.ekinprj' data = self . prepare_data ( ) fd = open ( filename , 'w' ) import pickle pickle . dump ( data , fd ) fd . close ( ) return
Save data to an ekin project file
Save data to an ekin project file
"""Save data to an ekin project file"""
self
filename