Gom.Resource¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The resources repository. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Gom.Resource(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
- classmethod set_property_from_bytes(property_name, from_bytes_func)¶
- Parameters:
property_name (
str
) –from_bytes_func (
Gom.ResourceFromBytesFunc
) –
- classmethod set_property_new_in_version(property_name, version)¶
- classmethod set_property_set_mapped(property_name, is_mapped)¶
- classmethod set_property_to_bytes(property_name, to_bytes_func)¶
- Parameters:
property_name (
str
) –to_bytes_func (
Gom.ResourceToBytesFunc
) –
- classmethod set_reference(property_name, ref_table_name, ref_property_name)¶
- delete_async(callback, *user_data)¶
- Parameters:
callback (
Gio.AsyncReadyCallback
orNone
) –
- delete_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) –- Raises:
- Return type:
- delete_sync()¶
- Raises:
- Returns:
- Return type:
Synchronously deletes a resource. This may only be called from inside a callback to
Gom.Adapter.queue_write
().
- fetch_m2m_async(resource_type, m2m_table, filter, callback, *user_data)¶
- Parameters:
resource_type (
GObject.GType
) –m2m_table (
str
) –filter (
Gom.Filter
) –callback (
Gio.AsyncReadyCallback
orNone
) –
- fetch_m2m_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – AGio.AsyncResult
.- Raises:
- Returns:
- Return type:
Completes the asynchronous request to fetch a group of resources that are related to the resource through a many-to-many table.
- save_async(callback, *user_data)¶
- Parameters:
callback (
Gio.AsyncReadyCallback
orNone
) –
- save_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) –- Raises:
- Return type:
- save_sync()¶
- Raises:
- Returns:
- Return type:
Property Details¶
- Gom.Resource.props.repository¶
- Name:
repository
- Type:
- Default Value:
- Flags:
The resources repository.