#NEWLINE# def inventory_query_string( self ) : #NEWLINE# #INDENT# 'Returns a web query string for use in building URLs that link to\n        the inventory objects being counted' #NEWLINE# parts = [ ] #NEWLINE# if self . inventory_name : #NEWLINE# #INDENT# parts . append ( ( 'name=%s' % self . inventory_name ) ) #NEWLINE# #UNINDENT# if self . inventory_version : #NEWLINE# #INDENT# parts . append ( ( 'version=%s' % self . inventory_version ) ) #NEWLINE# #UNINDENT# if self . inventory_bundleid : #NEWLINE# #INDENT# parts . append ( ( 'bundleid=%s' % self . inventory_bundleid ) ) #NEWLINE# #UNINDENT# if self . inventory_bundlename : #NEWLINE# #INDENT# parts . append ( ( 'bundlename=%s' % self . inventory_bundlename ) ) #NEWLINE# #UNINDENT# if self . inventory_path : #NEWLINE# #INDENT# parts . append ( ( 'path=%s' % self . inventory_path ) ) #NEWLINE# #UNINDENT# if parts : #NEWLINE# #INDENT# return quote_plus ( ( '?%s' % '&' . join ( parts ) ) , safe = '?&=' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return ''