Re: [SQLObject] Re: Postgres: DROP table CASCADE
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Ian B. <ia...@co...> - 2004-11-30 17:48:17
|
Sidnei da Silva wrote: > On Mon, Nov 29, 2004 at 09:47:37PM +0300, Oleg Broytmann wrote: > | On Mon, Nov 29, 2004 at 12:31:31PM -0600, Ian Bicking wrote: > | > python test.py -dpostgres > | > it's not very flexible with its command-line arguments. > | > | I've made it much more flexible using getopt. Please look at main() at > | > | http://svn.colorstudy.com/home/phd/SQLObject/inheritance/tests/test_sqlobject.py > | > | PS. I renamed test.py to test_sqlobject.py to import from it. > > What's wrong with optparse? Do we still need to support Python 2.2? Yes, we should still support Python 2.2, but we could also include optparse/optik as part of the package. We could either require people to install it (at least if they want run tests), or include it in the tarball and fit it into setup.py, or just include it in the source distribution (under like sqlobject/python24/optparse). At some point we should be using the logging module as well, which raises the same issue. -- Ian Bicking / ia...@co... / http://blog.ianbicking.org |