jnpr/space/collection.py
def _stringify_filter(self, filter_):
        """
        Helper method to stringify the given filter_ parameter and form a
        proper filter clause for the GET URL.
        """

        if isinstance(filter_, dict):
            filter_list = ['filter=(']
            index = 1
            for key, value in filter_.items():
                if index < len(filter_):
                    filter_list.extend(["(", key, " eq '", str(value), "') and "])
                else:
                    filter_list.extend(["(", key, " eq '", str(value), "')"])
                index += 1
            filter_list.append(')')
            return ''.join(filter_list)

        elif filter_ is not None:
            return ''.join(['filter=(', str(filter_), ')'])

        Helper method to stringify the given filter_ parameter and form a
        proper filter clause for the GET URL.
        
Helper method to stringify the given filter_ parameter and form a
proper filter clause for the GET URL.
Helper method to stringify the given filter_ parameter and form a proper filter clause for the GET URL .
def _stringify_filter(self, filter_):
        if isinstance(filter_, dict):
            filter_list = ['filter=(']
            index = 1
            for key, value in filter_.items():
                if index < len(filter_):
                    filter_list.extend(["(", key, " eq '", str(value), "') and "])
                else:
                    filter_list.extend(["(", key, " eq '", str(value), "')"])
                index += 1
            filter_list.append(')')
            return ''.join(filter_list)
        elif filter_ is not None:
            return ''.join(['filter=(', str(filter_), ')'])
def _stringify_filter ( self , filter_ ) : if isinstance ( filter_ , dict ) : filter_list = [ 'filter=(' ] index = 1 for key , value in filter_ . items ( ) : if index < len ( filter_ ) : filter_list . extend ( [ "(" , key , " eq '" , str ( value ) , "') and " ] ) else : filter_list . extend ( [ "(" , key , " eq '" , str ( value ) , "')" ] ) index += 1 filter_list . append ( ')' ) return '' . join ( filter_list ) elif filter_ is not None : return '' . join ( [ 'filter=(' , str ( filter_ ) , ')' ] )
Helper method to stringify the given filter_ parameter and form a
proper filter clause for the GET URL.
Helper method to stringify the given filter_ parameter and form a proper filter clause for the GET URL .
"""
        Helper method to stringify the given filter_ parameter and form a
        proper filter clause for the GET URL.
        """
self
filter_