<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel about="http://permalink.gmane.org/gmane.comp.python.sqlobject">
    <title>gmane.comp.python.sqlobject</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlobject</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlobject/9462"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlobject/9461"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlobject/9460"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlobject/9459"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlobject/9458"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlobject/9457"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlobject/9456"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlobject/9455"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlobject/9454"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlobject/9453"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlobject/9452"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlobject/9451"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlobject/9450"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlobject/9449"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlobject/9448"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlobject/9447"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlobject/9446"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlobject/9445"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlobject/9444"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlobject/9443"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlobject/9462">
    <title>Re: Firebird linux client =&gt; windows SQL server problem</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlobject/9462</link>
    <description>
   Thank you. I will try to find a place in the docs for the example.

Oleg.
</description>
    <dc:creator>Oleg Broytmann</dc:creator>
    <dc:date>2008-10-06T12:22:35</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlobject/9461">
    <title>Re: Firebird linux client =&gt; windows SQL server problem</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlobject/9461</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; 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&amp;url=/_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss
</description>
    <dc:creator>Petr Jakeš</dc:creator>
    <dc:date>2008-10-06T12:19:18</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlobject/9460">
    <title>Re: Firebird linux client =&gt; windows SQL server problem</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlobject/9460</link>
    <description>
   Vertical bar is replaces by a semicolon only on a w32 - it was done
specifically for SQLite. I have never considered a possibility for a linux
client to connect to a w32 server using w32 filenames.
   In POSIX OS a vertical bar is a pretty normal character and must not be
processed. See:

$ echo 'test' &gt;'d|x'
$ cat 'd|x'
test

   The most correct way to fix your problem is to connect to the DB using
a database name, not a file name. Is it possible in Firebird?

db_name = 'sysdat01.gdb'
connection_string = 'firebird://winsrv.xxx.xx:3050/' + db_name

Oleg.
</description>
    <dc:creator>Oleg Broytmann</dc:creator>
    <dc:date>2008-10-06T09:18:55</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlobject/9459">
    <title>Firebird linux client =&gt; windows SQL server problem</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlobject/9459</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; 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&amp;url=/_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss
</description>
    <dc:creator>Petr Jakeš</dc:creator>
    <dc:date>2008-10-06T08:25:01</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlobject/9458">
    <title>Re: Query using ends with</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlobject/9458</link>
    <description>

   SQLConstant passes its parameter to SQL untouched.

Oleg.
</description>
    <dc:creator>Oleg Broytmann</dc:creator>
    <dc:date>2008-10-01T19:33:17</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlobject/9457">
    <title>Re: Query using ends with</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlobject/9457</link>
    <description>I'd like a sqlobject query that does:

Domain table:
id       name
1        domain1.com
2        domain2.com
3        domain3.com

hostname = 'www.domain1.com'

SELECT * FROM domain WHERE hostname LIKE CONCAT('%', name);

or in a similar way:

SELECT * FROM domain WHERE LOCATE(name, hostname);

The problem in the second approach (though I think it is more
efficient and the first one), is if the variable hostname is
"www.domain1.com.br", the query is still valid, but it shouldn't be.

So, what is the best way to do what I need?

Thank you,
Leandro.


On Wed, Oct 1, 2008 at 2:59 PM, Oleg Broytmann &lt;phd&lt; at &gt;phd.pp.ru&gt; wrote:



</description>
    <dc:creator>Leandro Sales</dc:creator>
    <dc:date>2008-10-01T18:19:14</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlobject/9456">
    <title>Re: Query using ends with</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlobject/9456</link>
    <description>

Hello Oleg,
  it worked, but just as following:

from sqlobject.sqlbuilder import SQLConstant
domain = Domain.select(SQLConstant("'www.domain1.com'").endswith(Domain.q.name))

Note the single quote between www.domain1.com

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 &amp; 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&amp;url=/
</description>
    <dc:creator>Leandro Sales</dc:creator>
    <dc:date>2008-10-01T19:27:41</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlobject/9455">
    <title>Query using ends with</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlobject/9455</link>
    <description>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.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a tri</description>
    <dc:creator>Leandro Sales</dc:creator>
    <dc:date>2008-09-30T22:19:23</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlobject/9454">
    <title>Re: UnicodeEncodeError</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlobject/9454</link>
    <description>
   What is Solicitud? An SQLObject table? Then how 'lugar_nacimiento' is
declared?

Oleg.
</description>
    <dc:creator>Oleg Broytmann</dc:creator>
    <dc:date>2008-09-28T20:33:50</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlobject/9453">
    <title>Re: Query using sqlobject.sqlbuilder.AND</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlobject/9453</link>
    <description>
.select(AND(AND(X,Y,Z), AND(A,B,C)))

   or just

.select(X &amp; Y &amp; Z &amp; A &amp; B &amp; C))

Oleg.
</description>
    <dc:creator>Oleg Broytmann</dc:creator>
    <dc:date>2008-10-01T21:01:19</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlobject/9452">
    <title>Re: Query using sqlobject.sqlbuilder.AND</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlobject/9452</link>
    <description>
I tested in this way and it worked. 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 &amp; 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&amp;url=/
</description>
    <dc:creator>Leandro Sales</dc:creator>
    <dc:date>2008-10-01T20:57:34</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlobject/9451">
    <title>Query using sqlobject.sqlbuilder.AND</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlobject/9451</link>
    <description>How can I add more than 2 ands in a query?

Something like:
  MySQLObject.select(AND(X,Y,Z))

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 &amp; 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&amp;url=/
</description>
    <dc:creator>Leandro Sales</dc:creator>
    <dc:date>2008-10-01T20:56:31</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlobject/9450">
    <title>Re: Lazy query</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlobject/9450</link>
    <description>
In fact, I run one example using debug=1 and the SQL queries mixed
between two different calls. That's ok! Thank you once again.

Regards,
Leandro.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; 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&amp;url=/
</description>
    <dc:creator>Leandro Sales</dc:creator>
    <dc:date>2008-10-01T19:40:34</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlobject/9449">
    <title>Re: Lazy query</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlobject/9449</link>
    <description>
   Why do you think SO does that?

print ObjectParent.select()

=&gt; SELECT object_parent.id, object_parent.name FROM object_parent WHERE 1 = 1

Oleg.
</description>
    <dc:creator>Oleg Broytmann</dc:creator>
    <dc:date>2008-10-01T19:32:09</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlobject/9448">
    <title>Lazy query</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlobject/9448</link>
    <description>Hi,
  I have an sqloject object (ObjectParent) that contains others
sqlobject objects (OtherObject):

class ObjectParent(SQLObject):
    name = StringCol(alternateID=True, length=255, default=None)
    objects = MultipleJoin("OtherObject", joinColumn="objectId")

class OtherObject(SQLObject):
    name = StringCol(alternateID=True, length=255, default=None)
    object = ForeignKey('ObjectParent', dbName='objectId', cascade=True)

Then if I do

 x = ObjectParent.select(some_query)

... aparrently sqlobject loads also x.objects, selecting all related
objects. Is it possible to tell to sqlobject to query the records only
when I read x.objects for the first time?

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 &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/red</description>
    <dc:creator>Leandro Sales</dc:creator>
    <dc:date>2008-10-01T19:16:53</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlobject/9447">
    <title>Re: Query using ends with</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlobject/9447</link>
    <description>
from sqlobject.sqlbuilder import SQLConstant
domain = Domain.select(SQLConstant('www.domain1.com').endswith(Domain.q.name))

Oleg.
</description>
    <dc:creator>Oleg Broytmann</dc:creator>
    <dc:date>2008-10-01T19:11:22</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlobject/9446">
    <title>Re: Query using ends with</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlobject/9446</link>
    <description>

I don't want to use LOCATE due to what I comment (in some cases it
matches a wrong record for my case). I want the record of the Domain
table that the field domain.name matches with the end of the variable
'hostname'. This works:

qname = "www.domain1.com"
domain = Domain.select("""'""" + qname + """' LIKE CONCAT('%', domain.name)""")

The question is, is there a better way (more efficient) to do this
using sqlobject?

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 &amp; 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&amp;url=/
</description>
    <dc:creator>Leandro Sales</dc:creator>
    <dc:date>2008-10-01T18:41:09</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlobject/9445">
    <title>Re: Query using ends with</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlobject/9445</link>
    <description>
Hello, I did:

   qname = "www.domain1.com"
   domain = Domain.select("""'""" + qname + """' LIKE CONCAT('%',
domain.name)""")

Is there a better way to do this?

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 &amp; 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&amp;url=/
</description>
    <dc:creator>Leandro Sales</dc:creator>
    <dc:date>2008-10-01T18:30:30</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlobject/9444">
    <title>Re: Query using ends with</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlobject/9444</link>
    <description>
   Try:

from sqlobject.sqlbuilder import func
Domain.select(func.LOCATE(Domain.q.name, hostname))

Oleg.
</description>
    <dc:creator>Oleg Broytmann</dc:creator>
    <dc:date>2008-10-01T18:29:24</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlobject/9443">
    <title>Re: Query using ends with</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlobject/9443</link>
    <description>
   I don't understand what query you are going to build. Can you elaborate?

Oleg.
</description>
    <dc:creator>Oleg Broytmann</dc:creator>
    <dc:date>2008-10-01T17:59:10</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlobject/9442">
    <title>Re: Query using ends with</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlobject/9442</link>
    <description>
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 &amp; 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&amp;url=/
</description>
    <dc:creator>Leandro Sales</dc:creator>
    <dc:date>2008-10-01T17:34:16</dc:date>
  </item>
  <textinput about="http://search.gmane.org/?group=$group=gmane.comp.python.sqlobject">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.python.sqlobject</link>
  </textinput>
</rdf:RDF>
