#NEWLINE# @ require_context #NEWLINE# def get_public_items( context , kind , item_ids = None ) : #NEWLINE# #INDENT# query = model_query ( context , models . Item ) . filter ( models . Item . id . like ( ( '%s-%%' % kind ) ) ) . filter ( models . Item . data . like ( '%"is_public": True%' ) ) #NEWLINE# if item_ids : #NEWLINE# #INDENT# query = query . filter ( models . Item . id . in_ ( item_ids ) ) #NEWLINE# #UNINDENT# return [ _unpack_item_data ( item ) for item in query . all ( ) ]