예제 #1
0
파일: user.py 프로젝트: boegel/vsc-ldap
    def get_projects(self, ldap_filter=None, reload=False):
        """Return the projects thus user participates in.

        @type ldap_filter: LdapFilter object to apply to searching the projects.
        @type reload: boolean that forces a reload of the group.

        @returns: list of LdapProject
        """
        if not reload and not self.projects is None:
            return self.projects

        self.projects = LdapProject.get_for_member(self)

        return self.projects
예제 #2
0
    def get_projects(self, ldap_filter=None, reload=False):
        """Return the projects thus user participates in.

        @type ldap_filter: LdapFilter object to apply to searching the projects.
        @type reload: boolean that forces a reload of the group.

        @returns: list of LdapProject
        """
        if not reload and not self.projects is None:
            return self.projects

        self.projects = LdapProject.get_for_member(self)

        return self.projects
예제 #3
0
    def get_projects(self, ldap_filter=None, reload=False, do_reload=False):  #pylint: disable=redefined-builtin
        """Return the projects thus user participates in.

        @type ldap_filter: this argument is ignored
        @type reload: deprecated argument, do not use anymore, use do_reload
        @type reload: boolean that forces a reload of the group.

        @returns: list of LdapProject
        """
        if ldap_filter is not None:
            logging.warning('ldap_filter argument is ignored')
        del ldap_filter

        if reload:
            logging.warning('usage of reload is deprecated, use do_reload instead')
            do_reload = reload

        if not do_reload and not self.projects is None:
            return self.projects

        self.projects = LdapProject.get_for_member(self)

        return self.projects
예제 #4
0
    def get_projects(self, ldap_filter=None, reload=False, do_reload=False):  #pylint: disable=redefined-builtin
        """Return the projects thus user participates in.

        @type ldap_filter: this argument is ignored
        @type reload: deprecated argument, do not use anymore, use do_reload
        @type reload: boolean that forces a reload of the group.

        @returns: list of LdapProject
        """
        if ldap_filter is not None:
            logging.warning('ldap_filter argument is ignored')
        del ldap_filter

        if reload:
            logging.warning(
                'usage of reload is deprecated, use do_reload instead')
            do_reload = reload

        if not do_reload and not self.projects is None:
            return self.projects

        self.projects = LdapProject.get_for_member(self)

        return self.projects