diff profilemanager/manager.py @ 27:5988a15da3b4

things are being awful; checking in anyway
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 06 May 2010 16:47:12 -0700
parents d260de170cca
children 105ecbac0928
line wrap: on
line diff
--- a/profilemanager/manager.py	Thu May 06 15:48:20 2010 -0700
+++ b/profilemanager/manager.py	Thu May 06 16:47:12 2010 -0700
@@ -184,16 +184,6 @@
             return os.path.join(self.profile_dir, profile['path'])
         return profile['path']
 
-    def profile_dict(self, profile):
-        """
-        return option dictionary for a single profile
-        """
-        parser = self.parser()
-        section = self.section(profile, parser)
-        if section is None:
-            raise ProfileNotFound('Profile %s not found in %s' % (profile, self.profiles))
-        return dict(parser.items(section))
-
     def section(self, profile, parser=None):
         """
         returns the name of the section that a profile is in or None
@@ -207,6 +197,16 @@
             if parser.get(section, 'name') == profile:
                 return section
 
+    def profile_dict(self, profile):
+        """
+        return option dictionary for a single profile
+        """
+        parser = self.parser()
+        section = self.section(profile, parser)
+        if section is None:
+            raise ProfileNotFound('Profile %s not found in %s' % (profile, self.profiles))
+        return dict(parser.items(section))
+
     def profiles_dict(self):
         """
         return nested dict of all profiles