RB.RhythmDB¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
Virtual Methods¶
- Inherited:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Whether or not changes should be saved |
||
r/w |
name |
||
r/w |
Whether or not to update the database |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Emitted to request creation of a |
|
Emitted when a new entry is added to the database. |
|
Emitted when a database entry is modified. |
|
Emitted when an entry is deleted from the database. |
|
Emitted to gather all available extra metadata for a database entry. |
|
This signal is emitted when an extra metadata value is provided for a specific entry independantly of an extra metadata request. |
|
This signal is emitted to allow extra (transient) metadata to be supplied for the given entry. |
|
Emitted when a keyword is added to an entry. |
|
Emitted when a keyword is removed from an entry. |
|
Emitted when the database is fully loaded. |
|
Emitted when the database becomes temporarily read-only, or becomes writeable after being read-only. |
|
Emitted when the database has been saved. |
|
Emitted when an error occurs while saving the database. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class RB.RhythmDB(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
RB.RhythmDB
is an in-memory database containingRB.RhythmDBEntry
items. It runs queries represented asGLib.PtrArray
s containing query criteria, feeding the results intoRB.RhythmDBQueryResults
implementations such asRB.RhythmDBQueryModel
. From there, entries are grouped by particular property values to formRB.RhythmDBPropertyModel
s.RB.RhythmDBEntry
contains a fixed set of properties, defined byRB.RhythmDBPropType
,- classmethod compute_status_normal(n_songs, duration, size, singular, plural)¶
- Parameters:
n_songs (
int
) – the number of tracks.duration (
int
) – the total duration of the tracks.size (
int
) – the total size of the tracks.singular (
str
) – singular form of the format string to use for entries (eg “%d song”)plural (
str
) – plural form of the format string to use for entries (eg “%d songs”)
- Returns:
the string, which should be freed with
GLib.free
.- Return type:
Creates a string containing the “status” information about a list of tracks. The singular and plural strings must be used in a direct ngettext call elsewhere in order for them to be marked for translation correctly.
- classmethod error_quark()¶
- Returns:
error quark
- Return type:
Returns the #GQuark used for
RB.RhythmDBError
information
- classmethod get_error_entry_type()¶
- Returns:
the entry type for import errors
- Return type:
Returns the
RB.RhythmDBEntryType
for import errors
- classmethod get_ignore_entry_type()¶
- Returns:
the entry type for ignored files
- Return type:
Returns the
RB.RhythmDBEntryType
for ignored files
- classmethod get_song_entry_type()¶
- Returns:
the entry type for normal songs
- Return type:
Returns the
RB.RhythmDBEntryType
for normal songs.
- classmethod query_concatenate(query1, query2)¶
- Parameters:
query1 (
GLib.PtrArray
) – query to append toquery2 (
GLib.PtrArray
) – query to append
Appends query2 to query1.
- classmethod query_copy(array)¶
- Parameters:
array (
GLib.PtrArray
) – the query to copy.- Returns:
a copy of the passed query. It must be freed with
RB.RhythmDB.query_free
()- Return type:
Creates a copy of a query.
- classmethod query_free(query)¶
- Parameters:
query (
GLib.PtrArray
) – a query.
Frees the query query
- add_uri(uri)¶
- Parameters:
uri (
str
) – the URI to add an entry/entries for
Adds the file(s) pointed to by uri to the database, as entries of type RHYTHMDB_ENTRY_TYPE_SONG. If the URI is that of a file, it will be added. If the URI is that of a directory, everything under it will be added recursively.
- add_uri_with_types(uri, type, ignore_type, error_type)¶
- Parameters:
uri (
str
) – the URI to addtype (
RB.RhythmDBEntryType
) – theRB.RhythmDBEntryType
to use for new entriesignore_type (
RB.RhythmDBEntryType
) – theRB.RhythmDBEntryType
to use for ignored fileserror_type (
RB.RhythmDBEntryType
) – theRB.RhythmDBEntryType
to use for import errors
Adds the file(s) pointed to by uri to the database, as entries of the specified type. If the URI points to a file, it will be added. The the URI identifies a directory, everything under it will be added recursively.
- commit()¶
Apply all database changes, and send notification of changes and new entries. This needs to be called after any changes have been made, such as a group of
RB.RhythmDB.entry_set
() calls, or a new entry has been added.
- do_full_query_async_parsed(results, query)¶
- Parameters:
results (
RB.RhythmDBQueryResults
) – aRB.RhythmDBQueryResults
instance to feed results toquery (
GLib.PtrArray
) – the query to run
Asynchronously runs a parsed query across the database, feeding matching entries to results in chunks. This can only be called from the main thread.
Since results is always a RhythmDBQueryModel, use the
RB.RhythmDBQueryModel
::complete
signal to identify when the query is complete.
- do_full_query_parsed(results, query)¶
- Parameters:
results (
RB.RhythmDBQueryResults
) – aRB.RhythmDBQueryResults
instance to feed results toquery (
GLib.PtrArray
) – a parsed query
Synchronously evaluates the parsed query query, feeding results to results in chunks. Does not return until the query is complete.
- emit_entry_added(entry)¶
- Parameters:
entry (
RB.RhythmDBEntry
) –
- emit_entry_deleted(entry)¶
- Parameters:
entry (
RB.RhythmDBEntry
) –
- emit_entry_extra_metadata_notify(entry, property_name, metadata)¶
- Parameters:
entry (
RB.RhythmDBEntry
) – aRB.RhythmDBEntry
property_name (
str
) – the metadata predicatemetadata (
GObject.Value
) – aGObject.Value
Emits a signal describing extra metadata for the entry. The property_name argument is emitted as the
::detail
part of the “entry_extra_metadata_notify” signal and as the ‘field’ parameter. Handlers can ensure they only get metadata they are interested in by supplying an appropriate::detail
part when connecting to the signal. If handlers are interested in the metadata they should ref or copy the contents of metadata and unref or free it when they are finished with it.
- entry_count()¶
- Returns:
number of entries
- Return type:
Returns the number of entries in the database.
- entry_count_by_type(entry_type)¶
- Parameters:
entry_type (
RB.RhythmDBEntryType
) – aRB.RhythmDBEntryType
.- Returns:
entry count
- Return type:
Returns the number of entries in the database of a particular type.
- entry_delete(entry)¶
- Parameters:
entry (
RB.RhythmDBEntry
) – aRB.RhythmDBEntry
.
Delete entry entry from the database, sending notification of its deletion. This is usually used by sources where entries can disappear randomly, such as a network source.
- entry_delete_by_type(type)¶
- Parameters:
type (
RB.RhythmDBEntryType
) – type of entried to delete.
Delete all entries from the database of the given type. This is usually used by non-permanent sources when they disappear, such as removable media being removed, or a network share becoming unavailable.
- entry_foreach(func, *data)¶
- Parameters:
func (
RB.RhythmDBEntryForeachFunc
) – the function to call with each entry.
Calls the given function for each of the entries in the database.
- entry_foreach_by_type(entry_type, func, *data)¶
- Parameters:
entry_type (
RB.RhythmDBEntryType
) – the type of entry to retrievefunc (
RB.RhythmDBEntryForeachFunc
) – the function to call with each entry
Calls the given function for each of the entries in the database of a given type.
- entry_gather_metadata(entry)¶
- Parameters:
entry (
RB.RhythmDBEntry
) – aRB.RhythmDBEntry
- Returns:
a
RB.StringValueMap
containing metadata for the entry. This must be freed usingGObject.Object.unref
.- Return type:
Gathers all metadata for the entry. The returned
GLib.HashTable
maps property names and extra metadata names (described under rhythmdb_entry_request_extra_metadata) to GValues. Anything wanting to provide extra metadata should connect to the “entry_extra_metadata_gather” signal.
- entry_get(entry, propid, val)¶
- Parameters:
entry (
RB.RhythmDBEntry
) – aRB.RhythmDBEntry
.propid (
RB.RhythmDBPropType
) – the id of the property to get.val (
GObject.Value
) – return location for the property value.
Gets a property of an entry, storing it in the given
GObject.Value
.
- entry_keyword_add(entry, keyword)¶
- Parameters:
entry (
RB.RhythmDBEntry
) – aRB.RhythmDBEntry
.keyword (
RB.RefString
) – the keyword to add.
- Returns:
whether the keyword was already on the entry
- Return type:
Adds a keyword to an entry.
- entry_keyword_has(entry, keyword)¶
- Parameters:
entry (
RB.RhythmDBEntry
) – aRB.RhythmDBEntry
.keyword (
RB.RefString
) – the keyword to check for.
- Returns:
whether the keyword had been added to the entry.
- Return type:
Checks whether a keyword is has been added to an entry.
- entry_keyword_remove(entry, keyword)¶
- Parameters:
entry (
RB.RhythmDBEntry
) – aRB.RhythmDBEntry
.keyword (
RB.RefString
) – the keyword to remove.
- Returns:
whether the keyword had previously been added to the entry.
- Return type:
Removed a keyword from an entry.
- entry_keywords_get(entry)¶
- Parameters:
entry (
RB.RhythmDBEntry
) – aRB.RhythmDBEntry
.- Returns:
the list of keywords that have been added to the entry.
- Return type:
Gets the list ofkeywords that have been added to an entry.
- entry_lookup_by_id(id)¶
- Parameters:
id (
int
) – entry ID- Returns:
the entry with id id, or
None
if no such entry exists.- Return type:
Looks up the entry with id id.
- entry_lookup_by_location(uri)¶
- Parameters:
uri (
str
) – the URI of the entry to lookup.- Returns:
the entry with location uri, or
None
if no such entry exists.- Return type:
Looks up the entry with location uri.
- entry_lookup_from_string(str, is_id)¶
- Parameters:
- Returns:
the entry matching the string, or
None
if no such entry exists.- Return type:
Locates an entry using a string containing either an entry ID or a location.
- entry_matches_ext_db_key(entry, key)¶
- Parameters:
entry (
RB.RhythmDBEntry
) – aRB.RhythmDBEntry
key (
RB.ExtDBKey
) – aRB.ExtDBKey
- Returns:
True
if the key matches the entry- Return type:
Checks whether key matches entry.
- entry_move_to_trash(entry)¶
- Parameters:
entry (
RB.RhythmDBEntry
) –RB.RhythmDBEntry
to trash
Trashes the file represented by #entry. If possible, the file is moved to the user’s trash directory and the entry is set to hidden, otherwise the error will be stored as the playback error for the entry.
- entry_request_extra_metadata(entry, property_name)¶
- Parameters:
entry (
RB.RhythmDBEntry
) – aRB.RhythmDBEntry
property_name (
str
) – the metadata predicate
- Returns:
an allocated, initialised, set
GObject.Value
, orNone
- Return type:
Emits a request for extra metadata for the entry. The property_name argument is emitted as the
::detail
part of the “entry_extra_metadata_request” signal. It should be a namespaced RDF predicate e.g. from Dublin Core, MusicBrainz, or internal to Rhythmbox (namespace “rb:”). Suitable predicates would be those that are expensive to acquire or only apply to a limited range of entries. Handlers capable of providing a particular predicate may ensure they only see appropriate requests by supplying an appropriate::detail
part when connecting to the signal. Upon a handler returning a non-None
value, emission will be stopped and the value returned to the caller; if no handlers return a non-None
value, the caller will receiveNone
. Priority is determined by signal connection order, withGObject.ConnectFlags.AFTER
providing a second, lower rank of priority. A handler returning a value should do so in aGObject.Value
allocated on the heap; the accumulator will take ownership. The caller should unset and free theGObject.Value
if non-None
when finished with it.
- entry_set(entry, propid, value)¶
- Parameters:
entry (
RB.RhythmDBEntry
) – aRB.RhythmDBEntry
.propid (
int
) – the id of the property to set.value (
GObject.Value
) – the property value.
This function can be called by any code which wishes to change a song property and send a notification. It may be called when the database is read-only; in this case the change will be queued for an unspecified time in the future. The implication of this is that
RB.RhythmDB.entry_get
() may not reflect the changes immediately. However, if this property is exposed in the user interface, you should still make the change in the widget. Then when the database returns to a writable state, your change will take effect in the database too, and a notification will be sent at that point.Note that you must call
RB.RhythmDB.commit
() at some point after invoking this function, and that even after the commit, your change may not have taken effect.
- entry_type_get_by_name(name)¶
- Parameters:
name (
str
) – name of the type to look for- Returns:
- Return type:
Locates a
RB.RhythmDBEntryType
by name. ReturnsNone
if no entry type is registered with the specified name.
- entry_write_metadata_changes(entry, changes)¶
- Parameters:
entry (
RB.RhythmDBEntry
) – theRB.RhythmDBEntry
to updatechanges ([
RB.RhythmDBEntryChange
]) – a list of changes to write
- Raises:
This can be called from a
RB.RhythmDBEntryType
sync_metadata function when the appropriate action is to write the metadata changes to the file at the entry’s location.
- evaluate_query(query, entry)¶
- Parameters:
query (
GLib.PtrArray
) – a query.entry (
RB.RhythmDBEntry
) – a RhythmDBEntry.
- Returns:
whether the given entry matches the criteria of the given query.
- Return type:
Evaluates the given entry against the given query.
- get_property_type(property_id)¶
- Parameters:
property_id (
int
) – a property ID (RB.RhythmDBPropType
)- Returns:
property value type
- Return type:
Returns the
GObject.GType
for the value of the property.
- load()¶
Load the database from disk.
- nice_elt_name_from_propid(propid)¶
- Parameters:
propid (
RB.RhythmDBPropType
) – property ID- Returns:
property ID name, must not be freed
- Return type:
Returns a short non-translated name for the property #propid. This name is suitable for use as an XML tag name, for example.
- propid_from_nice_elt_name(name)¶
- Parameters:
name (
libxml2.Char
) – a property ID name- Returns:
a
RB.RhythmDBPropType
, or -1- Return type:
Converts a property name returned by rhythmdb_propid_from_nice_elt_name back to a
RB.RhythmDBPropType
. If the name does not match a property ID, -1 will be returned instead.
- query_append_params(query, type, prop, value)¶
- Parameters:
query (
GLib.PtrArray
) – the query to append totype (
RB.RhythmDBQueryType
) – query typeprop (
RB.RhythmDBPropType
) – query propertyvalue (
GObject.Value
) – query value
Appends a new query term to query.
- query_append_prop_multiple(query, propid, items)¶
- Parameters:
query (
GLib.PtrArray
) – the query to append topropid (
RB.RhythmDBPropType
) – property ID to matchitems ([
GObject.Value
]) –GLib.List
of values to match against
Appends a set of criteria to a query to match against any of the values listed in items.
- query_deserialize(parent)¶
- Parameters:
parent (
libxml2.NodePtr
) – parent XML node of serialized query- Returns:
deserialized query.
- Return type:
Converts a serialized query back into a GPtrArray query.
- query_is_time_relative(query)¶
- Parameters:
query (
GLib.PtrArray
) – the query to check- Returns:
True
if time-relative criteria found- Return type:
Checks if a query contains any time-relative criteria.
- query_preprocess(query)¶
- Parameters:
query (
GLib.PtrArray
) – query to preprocess
Preprocesses a query to prepare it for execution. This has two main roles: to perform expensive data transformations once per query, rather than once per entry, and converting criteria to lower-level forms that are implemented by the database backend.
For
RB.RhythmDBPropType.SEARCH_MATCH
, this converts the search terms into an array of case-folded words.When matching against case-folded properties such as
RB.RhythmDBPropType.TITLE_FOLDED
, this case-folds the query value.When performing year-based criteria such as
RB.RhythmDBQueryType.YEAR_LESS_THAN
, it converts the year into the Julian date such that a simple numeric comparison will work.
- query_serialize(query, parent)¶
- Parameters:
query (
GLib.PtrArray
) – query to serializeparent (
libxml2.NodePtr
) – XML node to attach the query to
Converts query into XML form as a child of parent. It can be converted back into a query by passing parent to rhythmdb_query_deserialize.
- query_to_string(query)¶
- Parameters:
query (
GLib.PtrArray
) – a query.- Returns:
allocated string form of the query
- Return type:
Returns a supposedly human-readable form of the query. This is only intended for debug usage.
- register_entry_type(entry_type)¶
- Parameters:
entry_type (
RB.RhythmDBEntryType
) – the new entry type to register
Registers a new entry type. An entry type must be registered before any entries can be created for it.
- save()¶
Save the database to disk, not returning until it has been saved.
- save_async()¶
Save the database to disk, asynchronously.
- shutdown()¶
Ceases all
RB.RhythmDB
operations, including stopping all directory monitoring, and removing all actions and events currently queued.
- start_action_thread()¶
Starts the
RB.RhythmDB
processing thread. Needs to be called during startup.
- do_entry_added(entry) virtual¶
- Parameters:
entry (
RB.RhythmDBEntry
) –
- do_entry_deleted(entry) virtual¶
- Parameters:
entry (
RB.RhythmDBEntry
) –
- do_entry_extra_metadata_gather(entry, data) virtual¶
- Parameters:
entry (
RB.RhythmDBEntry
) –data (
RB.StringValueMap
) –
- do_entry_extra_metadata_notify(entry, field, metadata) virtual¶
- Parameters:
entry (
RB.RhythmDBEntry
) –field (
str
) –metadata (
GObject.Value
) –
- do_entry_extra_metadata_request(entry) virtual¶
- Parameters:
entry (
RB.RhythmDBEntry
) –- Return type:
- do_entry_keyword_added(entry, keyword) virtual¶
- Parameters:
entry (
RB.RhythmDBEntry
) –keyword (
RB.RefString
) –
- do_entry_keyword_removed(entry, keyword) virtual¶
- Parameters:
entry (
RB.RhythmDBEntry
) –keyword (
RB.RefString
) –
- do_impl_do_full_query(query, results, cancel) virtual¶
- Parameters:
query (
GLib.PtrArray
) –results (
RB.RhythmDBQueryResults
) –cancel (
bool
) –
- do_impl_entry_count_by_type(type) virtual¶
- Parameters:
type (
RB.RhythmDBEntryType
) –- Return type:
- do_impl_entry_delete(entry) virtual¶
- Parameters:
entry (
RB.RhythmDBEntry
) –
- do_impl_entry_delete_by_type(type) virtual¶
- Parameters:
type (
RB.RhythmDBEntryType
) –
- do_impl_entry_get(entry, propid, value) virtual¶
- Parameters:
entry (
RB.RhythmDBEntry
) –propid (
int
) –value (
GObject.Value
) –
- do_impl_entry_keyword_add(entry, keyword) virtual¶
- Parameters:
entry (
RB.RhythmDBEntry
) –keyword (
RB.RefString
) –
- Return type:
- do_impl_entry_keyword_has(entry, keyword) virtual¶
- Parameters:
entry (
RB.RhythmDBEntry
) –keyword (
RB.RefString
) –
- Return type:
- do_impl_entry_keyword_remove(entry, keyword) virtual¶
- Parameters:
entry (
RB.RhythmDBEntry
) –keyword (
RB.RefString
) –
- Return type:
- do_impl_entry_new(entry) virtual¶
- Parameters:
entry (
RB.RhythmDBEntry
) –
- do_impl_entry_set(entry, propid, value) virtual¶
- Parameters:
entry (
RB.RhythmDBEntry
) –propid (
int
) –value (
GObject.Value
) –
- Return type:
- do_impl_entry_type_registered(type) virtual¶
- Parameters:
type (
RB.RhythmDBEntryType
) –
- do_impl_evaluate_query(query, entry) virtual¶
- Parameters:
query (
GLib.PtrArray
) –entry (
RB.RhythmDBEntry
) –
- Return type:
- do_impl_load(cancel) virtual¶
- Parameters:
cancel (
Gio.Cancellable
orNone
) –- Return type:
- do_impl_lookup_by_location(uri) virtual¶
- Parameters:
uri (
RB.RefString
) –- Return type:
- do_impl_save() virtual¶
- do_load_complete() virtual¶
- do_save_complete() virtual¶
- do_save_error(uri, error) virtual¶
- Parameters:
uri (
str
) –error (
GLib.Error
) –
Signal Details¶
- RB.RhythmDB.signals.create_mount_op(rhythm_d_b)¶
- Signal Name:
create-mount-op
- Flags:
- Parameters:
rhythm_d_b (
RB.RhythmDB
) – The object which received the signal- Returns:
a
Gio.MountOperation
(usually actually aGtk.MountOperation
)- Return type:
Emitted to request creation of a
Gio.MountOperation
to use to mount a volume.
- RB.RhythmDB.signals.entry_added(rhythm_d_b, entry)¶
- Signal Name:
entry-added
- Flags:
- Parameters:
rhythm_d_b (
RB.RhythmDB
) – The object which received the signalentry (
RB.RhythmDBEntry
) – the newly addedRB.RhythmDBEntry
Emitted when a new entry is added to the database.
- RB.RhythmDB.signals.entry_changed(rhythm_d_b, entry, changes)¶
- Signal Name:
entry-changed
- Flags:
- Parameters:
rhythm_d_b (
RB.RhythmDB
) – The object which received the signalentry (
RB.RhythmDBEntry
) – the changedRB.RhythmDBEntry
changes ([
RB.RhythmDBEntryChange
]) – aGLib.PtrArray
ofRB.RhythmDBEntryChange
structures describing the changes
Emitted when a database entry is modified. The changes list contains a structure for each entry property that has been modified.
- RB.RhythmDB.signals.entry_deleted(rhythm_d_b, entry)¶
- Signal Name:
entry-deleted
- Flags:
- Parameters:
rhythm_d_b (
RB.RhythmDB
) – The object which received the signalentry (
RB.RhythmDBEntry
) – the deletedRB.RhythmDBEntry
Emitted when an entry is deleted from the database.
- RB.RhythmDB.signals.entry_extra_metadata_gather(rhythm_d_b, entry, data)¶
- Signal Name:
entry-extra-metadata-gather
- Flags:
- Parameters:
rhythm_d_b (
RB.RhythmDB
) – The object which received the signalentry (
RB.RhythmDBEntry
) – theRB.RhythmDBEntry
for which to gather metadatadata (
RB.StringValueMap
) – aRB.StringValueMap
to hold the gathered metadata
Emitted to gather all available extra metadata for a database entry. Handlers for this signal should insert any metadata they can provide into the string-value map. Only immediately available metadata items should be returned. If one or more metadata items is not immediately available, the handler should not initiate an attempt to retrieve them.
- RB.RhythmDB.signals.entry_extra_metadata_notify(rhythm_d_b, entry, field, metadata)¶
- Signal Name:
entry-extra-metadata-notify
- Flags:
- Parameters:
rhythm_d_b (
RB.RhythmDB
) – The object which received the signalentry (
RB.RhythmDBEntry
) – theRB.RhythmDBEntry
for which extra metadata has been suppliedfield (
str
) – the extra metadata field being suppliedmetadata (
GObject.Value
) – the extra metadata value
This signal is emitted when an extra metadata value is provided for a specific entry independantly of an extra metadata request.
- RB.RhythmDB.signals.entry_extra_metadata_request(rhythm_d_b, entry)¶
- Signal Name:
entry-extra-metadata-request
- Flags:
- Parameters:
rhythm_d_b (
RB.RhythmDB
) – The object which received the signalentry (
RB.RhythmDBEntry
) – theRB.RhythmDBEntry
for which extra metadata is being requested
- Returns:
the extra metadata value
- Return type:
This signal is emitted to allow extra (transient) metadata to be supplied for the given entry. The detail of the signal invocation describes the specific metadata value being requested. If the object handling the signal can provide the requested item, but it isn’t immediately available, it can initiate an attempt to retrieve it. If successful, it would call rhythmdb_emit_entry_extra_metadata_notify when the metadata is available.
- RB.RhythmDB.signals.entry_keyword_added(rhythm_d_b, entry, keyword)¶
- Signal Name:
entry-keyword-added
- Flags:
- Parameters:
rhythm_d_b (
RB.RhythmDB
) – The object which received the signalentry (
RB.RhythmDBEntry
) – theRB.RhythmDBEntry
to which a keyword has been addedkeyword (
RB.RefString
) – the keyword that was added
Emitted when a keyword is added to an entry.
- RB.RhythmDB.signals.entry_keyword_removed(rhythm_d_b, entry, keyword)¶
- Signal Name:
entry-keyword-removed
- Flags:
- Parameters:
rhythm_d_b (
RB.RhythmDB
) – The object which received the signalentry (
RB.RhythmDBEntry
) – theRB.RhythmDBEntry
from which a keyword has been removedkeyword (
RB.RefString
) – the keyword that was removed
Emitted when a keyword is removed from an entry.
- RB.RhythmDB.signals.load_complete(rhythm_d_b)¶
- Signal Name:
load-complete
- Flags:
- Parameters:
rhythm_d_b (
RB.RhythmDB
) – The object which received the signal
Emitted when the database is fully loaded.
- RB.RhythmDB.signals.read_only(rhythm_d_b, readonly)¶
- Signal Name:
read-only
- Flags:
- Parameters:
rhythm_d_b (
RB.RhythmDB
) – The object which received the signal
Emitted when the database becomes temporarily read-only, or becomes writeable after being read-only.
- RB.RhythmDB.signals.save_complete(rhythm_d_b)¶
- Signal Name:
save-complete
- Flags:
- Parameters:
rhythm_d_b (
RB.RhythmDB
) – The object which received the signal
Emitted when the database has been saved.
- RB.RhythmDB.signals.save_error(rhythm_d_b, uri, error)¶
- Signal Name:
save-error
- Flags:
- Parameters:
rhythm_d_b (
RB.RhythmDB
) – The object which received the signaluri (
str
) – URI of the database file
Emitted when an error occurs while saving the database.
Property Details¶
- RB.RhythmDB.props.name¶
-
Database name. Not sure whta this is used for.