def _parse_query(query):
 if (query is None):
  query = 'full'
 query = query.split(':')
 return QUERIES[query[0]](*query[1:])

def _parse_query ( query ) : if ( query is None ) : query = 'full' query = query . split ( ':' ) return QUERIES [ query [ 0 ] ] ( * query [ 1 : ] )
returns a db filter from a query string usable in web_default_init_query and web_init_queries configuration items .