jnpr/space/collection.py
def _form_get_url(self, filter_, domain_id, paging, sortby):
        """
        Helper method to form the URL for a GET on this collection including
        filtering, paging, and sortby clauses.
        """
        url = self.get_href()

        fltr, dmn, pgng, srtby = None, None, None, None
        if filter_ is not None:
            fltr = self._stringify_filter(filter_)
        if domain_id is not None:
            dmn = "domainContext=(filterDomainIds eq %d)" % domain_id
        if paging is not None:
            pgng = self._stringify_paging(paging)
        if sortby is not None:
            srtby = self._stringify_sortby(sortby)

        if dmn is not None:
            url = '?'.join([url, dmn])
            if fltr is not None:
                url = '&'.join([url, fltr])
            if pgng is not None:
                url = '&'.join([url, pgng])
            if srtby is not None:
                url = '&'.join([url, srtby])
        elif fltr is not None:
            url = '?'.join([url, fltr])
            if pgng is not None:
                url = '&'.join([url, pgng])
            if srtby is not None:
                url = '&'.join([url, srtby])
        elif pgng is not None:
            url = '?'.join([url, pgng])
            if srtby is not None:
                url = '&'.join([url, srtby])
        elif srtby is not None:
            url = '?'.join([url, srtby])

        return url

        Helper method to form the URL for a GET on this collection including
        filtering, paging, and sortby clauses.
        
Helper method to form the URL for a GET on this collection including
filtering, paging, and sortby clauses.
Helper method to form the URL for a GET on this collection including filtering paging and sortby clauses .
def _form_get_url(self, filter_, domain_id, paging, sortby):
        url = self.get_href()
        fltr, dmn, pgng, srtby = None, None, None, None
        if filter_ is not None:
            fltr = self._stringify_filter(filter_)
        if domain_id is not None:
            dmn = "domainContext=(filterDomainIds eq %d)" % domain_id
        if paging is not None:
            pgng = self._stringify_paging(paging)
        if sortby is not None:
            srtby = self._stringify_sortby(sortby)
        if dmn is not None:
            url = '?'.join([url, dmn])
            if fltr is not None:
                url = '&'.join([url, fltr])
            if pgng is not None:
                url = '&'.join([url, pgng])
            if srtby is not None:
                url = '&'.join([url, srtby])
        elif fltr is not None:
            url = '?'.join([url, fltr])
            if pgng is not None:
                url = '&'.join([url, pgng])
            if srtby is not None:
                url = '&'.join([url, srtby])
        elif pgng is not None:
            url = '?'.join([url, pgng])
            if srtby is not None:
                url = '&'.join([url, srtby])
        elif srtby is not None:
            url = '?'.join([url, srtby])
        return url
def _form_get_url ( self , filter_ , domain_id , paging , sortby ) : url = self . get_href ( ) fltr , dmn , pgng , srtby = None , None , None , None if filter_ is not None : fltr = self . _stringify_filter ( filter_ ) if domain_id is not None : dmn = "domainContext=(filterDomainIds eq %d)" % domain_id if paging is not None : pgng = self . _stringify_paging ( paging ) if sortby is not None : srtby = self . _stringify_sortby ( sortby ) if dmn is not None : url = '?' . join ( [ url , dmn ] ) if fltr is not None : url = '&' . join ( [ url , fltr ] ) if pgng is not None : url = '&' . join ( [ url , pgng ] ) if srtby is not None : url = '&' . join ( [ url , srtby ] ) elif fltr is not None : url = '?' . join ( [ url , fltr ] ) if pgng is not None : url = '&' . join ( [ url , pgng ] ) if srtby is not None : url = '&' . join ( [ url , srtby ] ) elif pgng is not None : url = '?' . join ( [ url , pgng ] ) if srtby is not None : url = '&' . join ( [ url , srtby ] ) elif srtby is not None : url = '?' . join ( [ url , srtby ] ) return url
Helper method to form the URL for a GET on this collection including
filtering, paging, and sortby clauses.
Helper method to form the URL for a GET on this collection including filtering paging and sortby clauses .
"""
        Helper method to form the URL for a GET on this collection including
        filtering, paging, and sortby clauses.
        """
self
filter_
domain_id
paging
sortby