diff options
author | Martin Poirier <theeth@yahoo.com> | 2012-02-12 01:01:30 +0400 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2012-02-12 01:01:30 +0400 |
commit | a4683ac1a4f0e3ff23573dff1c9d739e6d46ac69 (patch) | |
tree | 92cb2d8c86d7758ae8a2662d6b3e700789248e57 /netrender/versioning.py | |
parent | 463a388e44420289110c2f39fd01863ccda0b5bb (diff) |
netrender
use an enum property for VCS job type (much more user friendly this way)
Diffstat (limited to 'netrender/versioning.py')
-rw-r--r-- | netrender/versioning.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/netrender/versioning.py b/netrender/versioning.py index 31bb2f8b..e88416cd 100644 --- a/netrender/versioning.py +++ b/netrender/versioning.py @@ -46,6 +46,7 @@ class AbstractVCS: class Subversion(AbstractVCS): name = "Subversion" + description = "Use the Subversion version control system" def __init__(self): super().__init__() self.version_exp = re.compile("([0-9]*)") @@ -87,6 +88,7 @@ class Subversion(AbstractVCS): class Git(AbstractVCS): name = "Git" + description = "Use the Git distributed version control system" def __init__(self): super().__init__() self.version_exp = re.compile("^commit (.*)") @@ -124,3 +126,9 @@ SYSTEMS = { Subversion.name: Subversion(), Git.name: Git() } + +ITEMS = ( + (Subversion.name, Subversion.name, Subversion.description), + (Git.name, Git.name, Git.description), + ) + |