|
Revision 8215, 300 bytes
(checked in by jbronn, 2 months ago)
|
gis: Merged revisions 7981-8001,8003-8011,8013-8033,8035-8036,8038-8039,8041-8063,8065-8076,8078-8139,8141-8154,8156-8214 via svnmerge from trunk.
|
- Property svn:eol-style set to
native
- Property svn:keywords set to
LastChangedRevision
|
| Line | |
|---|
| 1 |
VERSION = (1, 0, 'alpha') |
|---|
| 2 |
|
|---|
| 3 |
def get_version(): |
|---|
| 4 |
"Returns the version as a human-format string." |
|---|
| 5 |
v = '.'.join([str(i) for i in VERSION[:-1]]) |
|---|
| 6 |
if VERSION[-1]: |
|---|
| 7 |
from django.utils.version import get_svn_revision |
|---|
| 8 |
v = '%s-%s-%s' % (v, VERSION[-1], get_svn_revision()) |
|---|
| 9 |
return v |
|---|