Changeset 261

Show
Ignore:
Timestamp:
02/23/08 13:14:22 (6 months ago)
Author:
trivoallan
Message:

cleverbox : Version is now displayed at startup, and in the 'help' command. Fixes #29

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cleverbox/branches/0.4/cleverbox/scripts/admin.py

    r260 r261  
    127127    def run(self): 
    128128        self.interactive = True 
    129         print 'Welcome to cleverbox-admin\n'                \ 
     129        print 'Welcome to cleverbox-admin v%s\n'                \ 
    130130              'Interactive Cleverbox administration console.\n'       \ 
    131               "Type:  '?' or 'help' for help on commands.\n" 
     131              "Type:  '?' or 'help' for help on commands.\n" % _version 
    132132        self.cmdloop() 
    133133 
     
    266266        else: 
    267267            docs = (self._help_client + self._help_project + self._help_initenv + self._help_upgrade) 
    268             print 'cleverbox-admin - The Cleverbox Administration Console' 
     268            print 'cleverbox-admin - The Cleverbox Administration Console v%s' % _version 
    269269            if not self.interactive: 
    270270                print 
  • cleverbox/trunk/cleverbox/scripts/admin.py

    r260 r261  
    101101    def run(self): 
    102102        self.interactive = True 
    103         print styles.style.H1('Welcome to cleverbox-admin\n' \ 
     103        print styles.style.H1('Welcome to cleverbox-admin v%s\n' \ 
    104104                              'Interactive Cleverbox administration console.\n' \ 
    105                               "Type:  '?' or 'help' for help on commands.\n") 
     105                              "Type:  '?' or 'help' for help on commands.\n") % self.env.get_version() 
    106106        self.cmdloop() 
    107107 
     
    179179        else: 
    180180            docs = (self._help_client + self._help_project + self._help_initenv + self._help_upgrade) 
    181             print 'cleverbox-admin - The Cleverbox Administration Console' 
     181            print 'cleverbox-admin - The Cleverbox Administration Console v%s' % self.env.get_version() 
    182182            if not self.interactive: 
    183183                print