My favorites | Sign in
Project Home Wiki Issues
Checkout   Browse   Changes  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# The version of Django Evolution
#
# This is in the format of:
#
# (Major, Minor, Micro, alpha/beta/rc/final, Release Number, Released)
#
VERSION = (0, 6, 6, 'final', 0, True)


def get_version_string():
version = '%s.%s' % (VERSION[0], VERSION[1])

if VERSION[2]:
version += ".%s" % VERSION[2]

if VERSION[3] != 'final':
if VERSION[3] == 'rc':
version += ' RC%s' % VERSION[4]
else:
version += ' %s %s' % (VERSION[3], VERSION[4])

if not is_release():
version += " (dev)"

return version


def get_package_version():
version = '%s.%s' % (VERSION[0], VERSION[1])

if VERSION[2]:
version += ".%s" % VERSION[2]

if VERSION[3] != 'final':
version += '%s%s' % (VERSION[3], VERSION[4])

return version


def is_release():
return VERSION[5]


__version_info__ = VERSION[:-1]
__version__ = get_package_version()


class EvolutionException(Exception):
def __init__(self,msg):
self.msg = msg

def __str__(self):
return str(self.msg)


class CannotSimulate(EvolutionException):
pass


class SimulationFailure(EvolutionException):
pass


class EvolutionNotImplementedError(EvolutionException, NotImplementedError):
pass


try:
from django.db import connections
__is_multi_db = True
except:
__is_multi_db = False


def is_multi_db():
return __is_multi_db

Change log

r216 by chipx86 on Apr 1, 2012   Diff
Release Django Evolution 0.6.6.
Go to: 

Older revisions

r213 by chipx86 on Aug 15, 2011   Diff
Bump to 0.6.6 dev.
r212 by chipx86 on Aug 15, 2011   Diff
Release Django Evolution 0.6.5.
r209 by chipx86 on Jun 23, 2011   Diff
Bump to 0.6.4 dev.
All revisions of this file

File info

Size: 1409 bytes, 76 lines
Powered by Google Project Hosting