Any Value to a Save Function?
Rich Shepard <[email protected]>
| Newsgroups | gmane.comp.python.db.pysqlite.user |
|---|---|
| Message-ID | <[email protected]> |
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 -- Richard B. Shepard, Ph.D. | The Environmental Permitting Applied Ecosystem Services, Inc.(TM) | Accelerator <http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863