After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 431846 - Python rhythmdb bindings and RhythmDBEntryType
Python rhythmdb bindings and RhythmDBEntryType
Status: RESOLVED FIXED
Product: rhythmbox
Classification: Other
Component: Programmatic interfaces
HEAD
Other All
: Normal normal
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
Depends on:
Blocks: 323057
 
 
Reported: 2007-04-20 21:46 UTC by Tim Retout
Modified: 2007-05-21 10:31 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix RhythmDBEntryType in rhythmdb_query_append (1.55 KB, patch)
2007-05-05 06:43 UTC, Tim Retout
committed Details | Review

Description Tim Retout 2007-04-20 21:46:40 UTC
Please describe the problem:
I can't make queries involving rhythmdb.PROP_TYPE or RhythmDBEntryType.

Steps to reproduce:
Create the following query:

db = shell.props.db
query = db.query_new()
entry_type = db.entry_type_get_by_name('song')
db.query_append(query, [rhythmdb.QUERY_PROP_EQUALS,
			rhythmdb.PROP_TYPE,
			entry_type])

Actual results:
I get this error:

Warning: g_value_copy: assertion `g_value_type_compatible (G_VALUE_TYPE (src_value), G_VALUE_TYPE (dest_value))' failed

Expected results:
A query should be created with all the entries of that type.

Does this happen every time?
Yes.

Other information:
Comment 1 Tim Retout 2007-04-20 21:51:29 UTC
I think this is to do with RhythmDBEntryType being a boxed type.

Marking as blocker of podcast plugin (bug #323057).
Comment 2 Tim Retout 2007-05-05 06:43:34 UTC
Created attachment 87588 [details] [review]
Fix RhythmDBEntryType in rhythmdb_query_append

Tested against podcast-feed entries.
Comment 3 James "Doc" Livingston 2007-05-21 10:31:31 UTC
Committed to svn, thanks.