comparison profilemanager/manager.py @ 53:c279d2797d45

document datestamp argument
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 07 May 2010 11:24:50 -0700
parents 85b5fe402ab4
children f3812255ce6e
comparison
equal deleted inserted replaced
52:85b5fe402ab4 53:c279d2797d45
164 def backups(self, profile=None, datestamp=None): 164 def backups(self, profile=None, datestamp=None):
165 """ 165 """
166 list backups for a given profile, or all profiles if the 166 list backups for a given profile, or all profiles if the
167 profile is not given; returns a list of backups if 167 profile is not given; returns a list of backups if
168 profile is given or a dictionary of lists otherwise 168 profile is given or a dictionary of lists otherwise
169 - datestamp: format of date; otherwise, seconds since epoch
169 """ 170 """
170 if profile is None: # all profiles 171 if profile is None: # all profiles
171 # XXX this should probably be recursive 172 # XXX this should probably be recursive
172 retval = {} 173 retval = {}
173 profiles_dict = self.profiles_dict() 174 profiles_dict = self.profiles_dict()