From e708765d61b73e1f8ccba266d7bc934f6f4c1277 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Fri, 16 Jan 2009 09:50:34 -0500 Subject: Include local copy of UUID generator for Python 2.4. Python 2.5+ has a built-in RFC 4122-compliant UUID generator. Include a copy of this file in our library and import it in a way that it will work with Python 2.4. --- ipalib/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ipalib/__init__.py') diff --git a/ipalib/__init__.py b/ipalib/__init__.py index 8abb9029..29344e18 100644 --- a/ipalib/__init__.py +++ b/ipalib/__init__.py @@ -877,6 +877,11 @@ from frontend import Object, Method, Property from parameters import DefaultFrom, Bool, Flag, Int, Float, Bytes, Str, Password from parameters import BytesEnum, StrEnum +try: + import uuid +except ImportError: + import ipauuid as uuid + def create_api(mode='dummy'): """ Return standard `plugable.API` instance. -- cgit