CPE Chapter 5 + Cascading operations question + ORM Shootout

Gustavo Niemeyer gustavo at niemeyer.net
Mon Jul 16 21:41:30 BST 2007


> I agree with you. As far as the CPE example goes it is just a matter of
> adding
> 
> for song in store.find(Song, Song.album == album):
>    store.remove(song)

Indeed.  You can write that more easily as:

    store.find(Song, album=album).remove()

-- 
Gustavo Niemeyer
http://niemeyer.net



More information about the storm mailing list