On 8 Mar, 17:18, "Michael Bayer" <[EMAIL PROTECTED]> wrote:
> On Mar 8, 10:57 am, "Adam Hoscilo" <[EMAIL PROTECTED]> wrote:

> dont try to map "categories" on the FeedItem mapping, its not a
> database mapping.  add a property to your FeedItem class:
>
>    class FeedItem(object):
>         def _get_categories(self):
>             return self.feed.categories
>         categories = property(_get_categories)
>
> > Second thing: do you plan to add Feed.select_by(title=['first',
> > 'second']) as an option? I know i can use and_(table.c.title="first,
> > table.c.title="second").
> > This feature would be convenient (maybe there is a better way that I
> > don't know about).
>
> Feed.select(Feed.c.title.in_("first", "second"))
>
> you can also use that clause in select_by() before the keyword
> arguments.

Thanks for your help.

--
Adam Hoscilo
http://hoscilo.pypla.net
http://blog.bootsrap.pl


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected]
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