Added doodle for version vars in ipalib.__init__

This commit is contained in:
Jason Gerard DeRose 2009-01-30 12:19:19 -07:00 committed by Rob Crittenden
parent 92a150b4f1
commit 91ca06f079

View File

@ -879,12 +879,19 @@ from crud import Create, Retrieve, Update, Delete, Search
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
version_info = (2, 0, 0, 'alpha', 0)
if version_info[3] == 'final':
__version__ = '%d.%d.%d' % version_info[:3]
else:
__version__ = '%d.%d.%d.%s.%d' % version_info
def create_api(mode='dummy'):
"""
Return standard `plugable.API` instance.