Re: [SQLObject] delColumn on ForeignKey

2008-12-11 Thread Oleg Broytmann
On Thu, Dec 11, 2008 at 08:12:35PM +, Tom Ellis wrote: > > > b) Table.sqlmeta.delColumn(ForeignKey('OtherTable', name='colname')) > > > >Why do you want to create a ForeignKey instance to delete a column? (-: > > I don't, but I was under the impression that > Table.sqlmeta.delColumn(Strin

Re: [SQLObject] delColumn on ForeignKey

2008-12-11 Thread Tom Ellis
On Thu, Dec 11, 2008 at 11:09:44PM +0300, Oleg Broytmann wrote: > On Thu, Dec 11, 2008 at 07:54:19PM +, Tom Ellis wrote: > > A fix being what? So that > > > > a) Table.sqlmeta.delColumn('colname') > > > > works, or > >Yes, I think IWBN to have it working. OK > > b) Table.sqlmeta.delCo

Re: [SQLObject] delColumn on ForeignKey

2008-12-11 Thread Oleg Broytmann
On Thu, Dec 11, 2008 at 07:54:19PM +, Tom Ellis wrote: > A fix being what? So that > > a) Table.sqlmeta.delColumn('colname') > > works, or Yes, I think IWBN to have it working. > b) Table.sqlmeta.delColumn(ForeignKey('OtherTable', name='colname')) Why do you want to create a Foreign

Re: [SQLObject] delColumn on ForeignKey

2008-12-11 Thread Tom Ellis
On Thu, Dec 11, 2008 at 10:43:22PM +0300, Oleg Broytmann wrote: > > Table.sqlmeta.delColumn('colnameID') works, > >Yes, that's the way. > > > but it doesn't feel like the > > right way to do it. > >Do you want to work on a fix? A fix being what? So that a) Table.sqlmeta.delColumn('col

Re: [SQLObject] delColumn on ForeignKey

2008-12-11 Thread Oleg Broytmann
On Thu, Dec 11, 2008 at 07:22:57PM +, Tom Ellis wrote: > How do I use delColumn on a ForeignKey? > > Table.sqlmeta.delColumn('colname') does not work. Neither does > Table.sqlmeta.delColumn(ForeignKey('OtherTable', name='colname')). > > Table.sqlmeta.delColumn('colnameID') works, Yes, th