Changeset 210 for cleverbox/trunk/cleverbox
- Timestamp:
- 11/30/07 16:37:11 (4 years ago)
- Location:
- cleverbox/trunk/cleverbox
- Files:
-
- 3 modified
-
__init__.py (modified) (1 diff)
-
scripts/admin.py (modified) (4 diffs)
-
upgrades/upgrades.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cleverbox/trunk/cleverbox/__init__.py
r209 r210 1 1 # -*- coding: utf-8 -*- 2 version = '0.5dev' -
cleverbox/trunk/cleverbox/scripts/admin.py
r194 r210 8 8 from cleverbox import client, project 9 9 import cleverbox.log 10 11 _version = '0.5dev'12 10 13 11 class CleverboxAdmin(cmd.Cmd): … … 47 45 # Check if environment needs an upgrade 48 46 try: 49 if check_upgrade and self.env.needs_upgrade(_version): 47 # TODO : would be better to throw an exception here 48 if check_upgrade and self.env.needs_upgrade(cleverbox.version): 50 49 print 51 50 logging.warn(" Cleverbox environment needs to be upgraded.\n" \ … … 53 52 print 54 53 sys.exit(1) 55 elif not self.env.needs_upgrade( _version):54 elif not self.env.needs_upgrade(cleverbox.version): 56 55 print 57 56 logging.info(styles.style.SUCCESS(" Cleverbox environment is up to date.")) … … 139 138 140 139 # Environment creation 141 self.env.create( _version, collected_infos)140 self.env.create(cleverbox.version, collected_infos) 142 141 143 142 print -
cleverbox/trunk/cleverbox/upgrades/upgrades.py
r157 r210 1 1 from pkg_resources import parse_version 2 3 2 4 3 def do_upgrade_1(envname, env_version): … … 6 5 print "It is not possible to upgrade cleverbox instances created with Cleverbox prior to 0.4" 7 6 print "It was not even a public release !" 8 print "Your only choice left is to pay big money for Clever Age (http://www.clever-age.com) consultants to make a manual migration." 9 7 print "Your only choice left is to pay big money for Clever Age (http://www.clever-age.com) consultants to make a manual migration :P"
