# HG changeset patch # User Jeff Hammel # Date 1273172534 25200 # Node ID 8e651dd8e9ad200d98de105ae2767bbadfb1ee04 # Parent d7d051611425fe088c0c3762fbe90fdcbd2ae128 fix two things about hash() usage diff -r d7d051611425 -r 8e651dd8e9ad profilemanager/manager.py --- a/profilemanager/manager.py Thu May 06 11:47:33 2010 -0700 +++ b/profilemanager/manager.py Thu May 06 12:02:14 2010 -0700 @@ -42,7 +42,7 @@ # path to the profile directory dirname = name if hash: - dirname = '%s.%s' % self.hash() + dirname = '%s.%s' % (self.hash(), dirname) if not directory: directory = self.profile_dir dirname = os.path.join(directory, dirname) @@ -183,6 +183,6 @@ generate a random hash for a new profile """ population = string.lowercase + string.digits - return Random().sample(population, 8) + return ''.join(Random().sample(population, 8))