Revision edc51a21 astakosclient/astakosclient/__init__.py

b/astakosclient/astakosclient/__init__.py
804 804

  
805 805
    # ----------------------------
806 806
    # do a GET to ``API_PROJECTS``
807
    def get_projects(self, name=None, state=None, owner=None):
807
    def get_projects(self, name=None, state=None, owner=None, mode=None):
808 808
        """Retrieve all accessible projects
809 809

  
810 810
        Arguments:
811 811
        name  -- filter by name (optional)
812 812
        state -- filter by state (optional)
813 813
        owner -- filter by owner (optional)
814
        mode  -- if value is 'member', return only active projects in which
815
                 the request user is an active member
814 816

  
815 817
        In case of success, return a list of project descriptions.
816 818
        """
......
821 823
            filters["state"] = state
822 824
        if owner is not None:
823 825
            filters["owner"] = owner
826
        if mode is not None:
827
            filters["mode"] = mode
824 828
        req_headers = {'content-type': 'application/json'}
825 829
        req_body = (parse_request({"filter": filters}, self.logger)
826 830
                    if filters else None)

Also available in: Unified diff