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.
This commit is contained in:
Rob Crittenden
2009-01-16 09:50:34 -05:00
parent bae9dd7c07
commit e708765d61
2 changed files with 546 additions and 0 deletions

View File

@@ -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.