Changeset 178 for cleverbox/trunk

Show
Ignore:
Timestamp:
08/13/07 17:54:12 (5 years ago)
Author:
trivoallan
Message:

cleverbox : started to factor client in its own module.

Location:
cleverbox/trunk/cleverbox
Files:
1 added
2 modified

Legend:

Unmodified
Added
Removed
  • cleverbox/trunk/cleverbox/environment.py

    r177 r178  
    9393        return open(os.path.join(self.path, 'VERSION')).read().strip() 
    9494 
    95     def get_file_path(self, filename): 
     95    def get_path(self, filename): 
    9696        """ 
    9797        Returns path to requested filename. 
  • cleverbox/trunk/cleverbox/scripts/admin.py

    r177 r178  
    77from cleverbox.utils import termcolors 
    88from cleverbox.environment import Environment 
     9from cleverbox import clients  
    910 
    1011_defaults = { 
     
    8081        # TODO : move to environment.py ? 
    8182        self._config = ConfigParser.SafeConfigParser() 
    82         self._config.read(self.env.get_file_path('cleverbox.ini')) 
     83        self._config.read(self.env.get_path('cleverbox.ini')) 
    8384 
    8485    def emptyline(self): 
     
    250251        """ 
    251252 
    252         if not self._client_exists(client_name): 
     253        if not client.exists(self.env, client_name): 
    253254 
    254255            # Client name cannot contain strokes