You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
595 B

10 months ago
from leapp.models import fields, Model
from leapp.topics import SystemFactsTopic
class XorgDrv(Model):
"""
Name of the Xorg driver in use and whether it has custom options set.
This model is not expected to be used as a message (produced/consumed by actors).
It is used from within the XorgDrvFacts model.
"""
topic = SystemFactsTopic
driver = fields.String()
has_options = fields.Boolean(default=False)
class XorgDrvFacts(Model):
"""
List of Xorg drivers.
"""
topic = SystemFactsTopic
xorg_drivers = fields.List(fields.Model(XorgDrv))