mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-23 17:34:21 +03:00
fe9ed2340c
And give the classes consistent naming
16 lines
432 B
Python
16 lines
432 B
Python
#
|
|
# Copyright 2014 Red Hat, Inc.
|
|
# Cole Robinson <crobinso@redhat.com>
|
|
#
|
|
# This work is licensed under the GNU GPLv2.
|
|
# See the COPYING file in the top-level directory.
|
|
|
|
from ..xmlbuilder import XMLBuilder, XMLProperty
|
|
|
|
|
|
class DomainPm(XMLBuilder):
|
|
_XML_ROOT_NAME = "pm"
|
|
|
|
suspend_to_mem = XMLProperty("./suspend-to-mem/@enabled", is_yesno=True)
|
|
suspend_to_disk = XMLProperty("./suspend-to-disk/@enabled", is_yesno=True)
|