|
|
8ea12d |
From 13bad0da9efbd38ca288e7f28f9512649473f6ce Mon Sep 17 00:00:00 2001
|
|
|
8ea12d |
From: Chris Lumens <clumens@redhat.com>
|
|
|
8ea12d |
Date: Wed, 14 Jan 2015 11:55:45 -0500
|
|
|
8ea12d |
Subject: [PATCH 7/7] Put new _ped constants and functions into the parted
|
|
|
8ea12d |
module.
|
|
|
8ea12d |
|
|
|
8ea12d |
We don't want to require users of pyparted to have to dig down into the
|
|
|
8ea12d |
lower level bindings to get at these things.
|
|
|
8ea12d |
---
|
|
|
8ea12d |
src/parted/__init__.py | 28 +++++++++++++++++++++++++++-
|
|
|
8ea12d |
1 file changed, 27 insertions(+), 1 deletion(-)
|
|
|
8ea12d |
|
|
|
8ea12d |
diff --git a/src/parted/__init__.py b/src/parted/__init__.py
|
|
|
8ea12d |
index c8f6830..2d9ea32 100644
|
|
|
8ea12d |
--- a/src/parted/__init__.py
|
|
|
8ea12d |
+++ b/src/parted/__init__.py
|
|
|
8ea12d |
@@ -2,7 +2,7 @@
|
|
|
8ea12d |
# __init__.py
|
|
|
8ea12d |
# Python bindings for libparted (built on top of the _ped Python module).
|
|
|
8ea12d |
#
|
|
|
8ea12d |
-# Copyright (C) 2007, 2008, 2009 Red Hat, Inc.
|
|
|
8ea12d |
+# Copyright (C) 2007-2015 Red Hat, Inc.
|
|
|
8ea12d |
#
|
|
|
8ea12d |
# This copyrighted material is made available to anyone wishing to use,
|
|
|
8ea12d |
# modify, copy, or redistribute it subject to the terms and conditions of
|
|
|
8ea12d |
@@ -48,6 +48,9 @@ from _ped import TimerException
|
|
|
8ea12d |
from _ped import UnknownDeviceException
|
|
|
8ea12d |
from _ped import UnknownTypeException
|
|
|
8ea12d |
|
|
|
8ea12d |
+from _ped import register_exn_handler
|
|
|
8ea12d |
+from _ped import clear_exn_handler
|
|
|
8ea12d |
+
|
|
|
8ea12d |
from alignment import Alignment
|
|
|
8ea12d |
from constraint import Constraint
|
|
|
8ea12d |
from device import Device
|
|
|
8ea12d |
@@ -122,6 +125,29 @@ from _ped import DISK_GPT_PMBR_BOOT
|
|
|
8ea12d |
from _ped import DISK_TYPE_EXTENDED
|
|
|
8ea12d |
from _ped import DISK_TYPE_PARTITION_NAME
|
|
|
8ea12d |
|
|
|
8ea12d |
+from _ped import EXCEPTION_TYPE_INFORMATION
|
|
|
8ea12d |
+from _ped import EXCEPTION_TYPE_WARNING
|
|
|
8ea12d |
+from _ped import EXCEPTION_TYPE_ERROR
|
|
|
8ea12d |
+from _ped import EXCEPTION_TYPE_FATAL
|
|
|
8ea12d |
+from _ped import EXCEPTION_TYPE_BUG
|
|
|
8ea12d |
+from _ped import EXCEPTION_TYPE_NO_FEATURE
|
|
|
8ea12d |
+
|
|
|
8ea12d |
+from _ped import EXCEPTION_RESOLVE_UNHANDLED
|
|
|
8ea12d |
+from _ped import EXCEPTION_RESOLVE_FIX
|
|
|
8ea12d |
+from _ped import EXCEPTION_RESOLVE_YES
|
|
|
8ea12d |
+from _ped import EXCEPTION_RESOLVE_NO
|
|
|
8ea12d |
+from _ped import EXCEPTION_RESOLVE_OK
|
|
|
8ea12d |
+from _ped import EXCEPTION_RESOLVE_RETRY
|
|
|
8ea12d |
+from _ped import EXCEPTION_RESOLVE_IGNORE
|
|
|
8ea12d |
+from _ped import EXCEPTION_RESOLVE_CANCEL
|
|
|
8ea12d |
+
|
|
|
8ea12d |
+from _ped import EXCEPTION_OPT_OK_CANCEL
|
|
|
8ea12d |
+from _ped import EXCEPTION_OPT_YES_NO
|
|
|
8ea12d |
+from _ped import EXCEPTION_OPT_YES_NO_CANCEL
|
|
|
8ea12d |
+from _ped import EXCEPTION_OPT_IGNORE_CANCEL
|
|
|
8ea12d |
+from _ped import EXCEPTION_OPT_RETRY_CANCEL
|
|
|
8ea12d |
+from _ped import EXCEPTION_OPT_RETRY_IGNORE_CANCEL
|
|
|
8ea12d |
+
|
|
|
8ea12d |
from decorators import localeC
|
|
|
8ea12d |
|
|
|
8ea12d |
partitionTypesDict = {
|
|
|
8ea12d |
--
|
|
|
8ea12d |
2.4.0
|
|
|
8ea12d |
|