Logo Search packages:      
Sourcecode: sabayon version File versions  Download package

def lib::userdb::UserDatabase::get_profiles (   self  ) 

Return the list of currently available profiles.
This is basically just list of zip files in
/etc/desktop-profiles, each without the .zip extension.

Definition at line 424 of file userdb.py.

00424                            :
        """Return the list of currently available profiles.
        This is basically just list of zip files in
        /etc/desktop-profiles, each without the .zip extension.
        """
      list = []
      try:
          for file in os.listdir(config.PROFILESDIR):
              if file[-4:] != ".zip":
                continue
            list.append(file[0:-4])
      except:
          dprint("Failed to read directory(%s)\n" % (config.PROFILESDIR))
      # TODO: also list remote profiles as found in self.doc
      return list

    def get_users (self):


Generated by  Doxygen 1.6.0   Back to index