[sugar] Database Activity

Tomeu Vizoso tomeu at tomeuvizoso.net
Sun Mar 9 08:32:11 EDT 2008


On Sat, Mar 8, 2008 at 9:58 PM, Michael Stone <michael at laptop.org> wrote:
> On Sat, Mar 08, 2008 at 03:45:58PM -0500, Chris Ball wrote:
>  > Hi,
>  >
>  >    > I can use some advice as to how to proceed with the Python-database
>  >    > linkage. I don't think the XO has Psyqlite installed, and I really
>  >    > want to stay within what is available on the box with no add-ins,
>  >    > if possible. Maybe installing Psyqlite is ok.
>  >
>  > We do have pysqlite installed on the laptop already, so it is fine to
>  > use it.  You can access it with:
>  >
>  >    >>> import pysqlite2
>
>  SQLite version 3 was merged into Python 2.5, which we use. This means
>  that
>
>   >>> import sqlite3
>
>  is another way to access SQLite.
>
>  We apparently ship python-sqlite2 only because the data store depends on
>  it. Why is the DS not using sqlite3?

The DS used sqlite to store metadata, but stopped doing that quite a
while ago. I think the News Reader activity also use(d) pysqlite.

The dependencies on pysqlite2 were added when we used python2.4.

Tomeu


More information about the Sugar mailing list