On Jun 21, 2013, at 1:39 PM, Chris Withers <ch...@simplistix.co.uk> wrote:

>> 
>> 
>> well you're going to have relationship with 
>> "primaryjoin=and_(Symbol.instrument_id==Instrument.id, 
>> Symbol.period.contains(func.now()))"  (what does contains(func.now()) do ?
> 
> # select now();
>              now
> -------------------------------
> 2013-06-21 18:38:06.015838+01
> (1 row)
> 
> 
>> then collection_class=attribute_mapped_collection(<attribute you want to key 
>> on>).
> 
> Okay, and how does assignment to that dictionary work? I need to modify the 
> period of the old row, if there is one, and then insert the new row.

you just assign to the dictionary with the correct key and it will work.

if it doesnt work then send a simple test case and I'll make it work.


-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to