comparison profilemanager/manager.py @ 38:81500171fda8

change output format
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 06 May 2010 18:01:03 -0700
parents 76fc1a23182c
children 30fc269a15c8
comparison
equal deleted inserted replaced
37:76fc1a23182c 38:81500171fda8
89 """ 89 """
90 lists the profiles available in the config file 90 lists the profiles available in the config file
91 - directories : display the directories 91 - directories : display the directories
92 """ 92 """
93 profiles = self.profiles_dict() 93 profiles = self.profiles_dict()
94 retval = [] 94 if not directories:
95 for name in sorted(profiles.keys()): 95 return sorted(profiles.keys())
96 values = [name] 96 return dict([(name, self.path(name)) for name in profiles.keys()])
97 if directories:
98 values.append(self.path(name))
99 retval.append(values)
100 return format_tabular(retval) # XXX: TBD upstream
101 97
102 def clone(self, source, dest, hash=True): 98 def clone(self, source, dest, hash=True):
103 """ 99 """
104 clones the profile `source` and output to `dest` 100 clones the profile `source` and output to `dest`
105 """ 101 """