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

def lib::userdb::UserDatabase::get_default_profile (   self,
  profile_location = True 
)

Look up the default profile.

@profile_location: whether the profile location should
be returned

Return value: the location of the default profile, which
should be in a suitable form for constructing a ProfileStorage
object, or the default profile name if @profile_location is
False.

Definition at line 254 of file userdb.py.

00254                                                            :
        """Look up the default profile.

        @profile_location: whether the profile location should
        be returned

        Return value: the location of the default profile, which
        should be in a suitable form for constructing a ProfileStorage
        object, or the default profile name if @profile_location is
        False.
        """
      default = None
      try:
          default = self.doc.xpathEval("/profiles/default")[0]
          profile = default.prop("profile")
      except:
          profile = None

        if not profile_location:
            return profile
        
        return self.__profile_name_to_location (profile, default)

    def get_profile (self, username, profile_location = True, ignore_default = False):


Generated by  Doxygen 1.6.0   Back to index