Changeset 210 for cleverbox/trunk
- Timestamp:
- 11/30/07 16:37:11 (4 years ago)
- Location:
- cleverbox/trunk
- Files:
-
- 4 modified
-
cleverbox/__init__.py (modified) (1 diff)
-
cleverbox/scripts/admin.py (modified) (4 diffs)
-
cleverbox/upgrades/upgrades.py (modified) (2 diffs)
-
docs/TODO (modified) (1 diff)
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" -
cleverbox/trunk/docs/TODO
r208 r210 15 15 * streamline cli / log output 16 16 * comment all methods 17 * get code coverage reports18 17 * configurable html generation for all instances overview 19 18 * configurable html for instance "homepages" 20 19 * apachectl integration (for configtest + reload) 21 20 * _version should go in cleverbox/__init__.py 22 * by default, files should be owned bu current user, not root 23 * use authn_alias in default conf (if depending on that is problematic, keep default clean and add an alternate profile) 24 * applicative exceptions ? (re-read chapter about that in python book) 21 * by default, files should be owned bu current user, not root : 2.0 !
