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