geoalchemy/geoalchemy — pull request #38 by anthonypt87 (2014-09-08 15:18:30+00:00)
Title: Sqlalchemy 0.9.4 compatability

I pulled chokoswitch's branch and noticed that I was running into another issue with compatibility. I was getting a TypeError when instantiating ColumnCollection. It turns out in Sqlalchemy 0.9.4, passing in *args into ColumnCollection was removed (https://github.com/zzzeek/sqlalchemy/blob/rel_0_9_4/lib/sqlalchemy/sql/base.py#L438). To get around this, I made the collection first and added the columns to it afterwards.

I think this is a problem only around 0.9.4. Version 1.0.0 and version 0.9.7 both added back the *args. That said, this should work for all version as add() has always been part of the public interface.