Mercurial > mozilla > hg > ProfileManager
comparison profilemanager/manager.py @ 19:4a1815f8d146
* stub adding new profile to configuration
* stub tests; have one mysterious failure with doctest :(
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 06 May 2010 12:42:27 -0700 |
parents | 8e651dd8e9ad |
children | 49d523a33c89 |
comparison
equal
deleted
inserted
replaced
18:8e651dd8e9ad | 19:4a1815f8d146 |
---|---|
49 | 49 |
50 # create directory | 50 # create directory |
51 # TODO: (optionally) pre-populate the directory a la FF | 51 # TODO: (optionally) pre-populate the directory a la FF |
52 os.mkdir(dirname) | 52 os.mkdir(dirname) |
53 | 53 |
54 # update profiles.ini | |
55 parser = ConfigParser() | |
56 parser.read(self.profiles) | |
57 | |
54 # return the directory name | 58 # return the directory name |
55 return dirname | 59 return dirname |
60 | |
61 def remove(self, name, delete=True): | |
62 """ | |
63 remove a profile from profiles.ini | |
64 - delete: delete the profile as well | |
65 """ | |
66 raise NotImplementedError | |
56 | 67 |
57 def list(self, directories=False): | 68 def list(self, directories=False): |
58 """ | 69 """ |
59 lists the profiles available in the config file | 70 lists the profiles available in the config file |
60 - directories : display the directories | 71 - directories : display the directories |