On Jun 15, 2011, at 8:21 AM, Eric Lemoine wrote:

> 
> The function '_compiler_dispatch' just makes sure, that we are using
> the correct geometry type in the cast.
> ------
> 
>> have you tried subclassing UserDefinedType
>> instead ?
> 
> Not yet. If you tell me that's what we should do I'll give it a try.

yeah the point of UserDefinedType was so that people don't have to worry about 
_compiler_dispatch details or forwards-compatibility - you just apply a 
get_col_spec() method like in previous releases.

http://www.sqlalchemy.org/docs/core/types.html#creating-new-types



> 
> 
> Cheers,
> 
> 
> -- 
> Eric Lemoine
> 
> Camptocamp France SAS
> Savoie Technolac, BP 352
> 73377 Le Bourget du Lac, Cedex
> 
> Tel : 00 33 4 79 44 44 96
> Mail : eric.lemo...@camptocamp.com
> http://www.camptocamp.com
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sqlalchemy" group.
> To post to this group, send email to sqlalchemy@googlegroups.com.
> To unsubscribe from this group, send email to 
> sqlalchemy+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/sqlalchemy?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to