On Apr 25, 2008, at 11:37 AM, Eric Lemoine wrote:

>
> Hello
>
> I have the following code in my pylons app:
>
> refugee = Refugee(value, geometry)
> model.Session.save(refugee)
> model.Session.commit()
>
> Refugee is the class mapped to my Table object (refugees_table).
> geometry is an instance of a custom type, for which I created a
> Geometry(TypeEngine) class.
>
> In commit(), SQLAlchemy compares the geometry object to some other
> geometry object (yes, my Geometry class defines the compare_values
> method). I'd just like to know what object my geometry object is
> compared to? I'm just saving a new object in the db table so why
> there's a need to compare it to something else?
>

actually, it shouldnt be compared to anything.  are you on 0.4 ? 
  

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to