On Tue, Sep 30, 2008 at 7:19 PM, Leandro Sales <[EMAIL PROTECTED]> wrote:
>
> Hello. Please consider the following: I have a sqlobject object named
> Domain that stores the list of available domains:
>
> class Domain(SQLObject):
>    name = StringCol(alternateID=True, length=255, default=None)
>
> In the database I have domains like:
>
> ID    name
> --------------------------
> 1     domain1.com
> 2     domain2.com
>
> I'd like to query the domain into the database that contains in a
> given hostname, lets say "www.domain1.com".
>
> I now that I can do something like:
>
> domain = Domain.select(Domain.q.name.endswith("www.domain1.com"))
>
> but instead, I'd check which domain name is in the hostname. Somethink like:
>
> domain = Domain.select("www.domain1.com".endswith(Domain.q.name.endswith()))
>
> .. but sqlobject doesn't allow me to do this. Any clue?
>
> Thank you,
> Leandro.

Hello folks,
  I already tried many ways to solve this problem, with no success.
Can anyone help me?

Thank you,
Leandro.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to