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
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
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