Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webactivity.py
diff options
context:
space:
mode:
authorManuel Quiñones <manuq@laptop.org>2012-03-28 15:29:53 (GMT)
committer Manuel Quiñones <manuq@laptop.org>2012-03-28 19:18:38 (GMT)
commitfe62a1bf0db214c5f302963aa5593502dfeae5f8 (patch)
treefbdb95a6b0f7a1d0f5eb476ca374ed1fce37cb2c /webactivity.py
parent3458b62082f4c8e2ce220c843a16529fd72a2990 (diff)
Store empty strings instead of None in the places sqlite database.
The SQL model sets "text" as the fields type for uri and title. However, sqlite uses a dynamic type sistem [1] and our Place class was initializing those attributes with None. As a consequence, when the user types something in the toolbar entry, and a search is made to show a drop-down list for autocomplete, the drop-down list is being filled with None, but is defined as Gtk.ListStore(str, str). This is provoking a GTK+ error,that crashes the activity in the XO, as bug In order to keep backwards compatibility, if the database returns None for does fields, they are translated to empty strings in _place_from_row() method of place.SqliteStore . [1] http://sqlite.org/datatype3.html Signed-off-by: Manuel Quiñones <manuq@laptop.org> Signed-off-by: Simon Schampijer <simon@laptop.org>
Diffstat (limited to 'webactivity.py')
0 files changed, 0 insertions, 0 deletions