Re: Any Value to a Save Function?
Adrian Klaver <[email protected]>
| Newsgroups | gmane.comp.python.db.pysqlite.user |
|---|---|
| Message-ID | <[email protected]> |
On Tuesday 28 November 2006 11:09 am, Rich Shepard wrote: > In my model, I open the database connection when the user selects either > a new project or an existing one. The cursor and connection are closed when > the application is exited, or if the current project database is closed, > and a different one opened. > > Following each meaningful data insertion or update, I issue a > 'self.con.commit()' to flush all data to disk. > > I cannot see a value in having methods OnSave() and OnSaveAs() in this > application. Have I missed something of value if I remove them? > > Rich The only thing I can think of is using the Save methods as a way of providing feedback to the user. -- Adrian Klaver [email protected]