Libosinfo.ProductFilter

g GObject.Object GObject.Object Libosinfo.Filter Libosinfo.Filter GObject.Object->Libosinfo.Filter Libosinfo.ProductFilter Libosinfo.ProductFilter Libosinfo.Filter->Libosinfo.ProductFilter

Subclasses:

None

Methods

Inherited:

Libosinfo.Filter (7), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

add_product_constraint (relshp, product)

add_support_date_constraint (when)

clear_product_constraint (relshp)

clear_product_constraints ()

get_product_constraint_values (relshp)

Virtual Methods

Inherited:

Libosinfo.Filter (1), GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

Libosinfo.Filter

r

Class Details

class Libosinfo.ProductFilter(**kwargs)
Bases:

Libosinfo.Filter

Abstract:

No

Structure:

Libosinfo.ProductFilterClass

classmethod new()
Returns:

a new filter

Return type:

Libosinfo.ProductFilter

Construct a new filter that matches all operating systems

add_product_constraint(relshp, product)
Parameters:
Return type:

int

Adds a constraint that matches products which have a relationship relshp with product. Multiple constraints can be set for the same relshp or product, in which case all must match

add_support_date_constraint(when)
Parameters:

when (GLib.Date) –

clear_product_constraint(relshp)
Parameters:

relshp (Libosinfo.ProductRelationship) – the relationship to clear

Remove all constraints for the relationship relshp

clear_product_constraints()

Remove all relationship constraints

get_product_constraint_values(relshp)
Parameters:

relshp (Libosinfo.ProductRelationship) – a relationship to query

Returns:

a list of operating systems

Return type:

[Libosinfo.Product]

Retrieve a list of all operating systems that are the target of constraint for the relationship relshp.