@parse_data
@set_database
def get_content_items(ids=None, **kwargs):
 if ids:
  values = Item.select().where(Item.id.in_(ids))
 else:
  values = Item.select()
 return values

@ parse_data @ set_database def get_content_items ( ids = None , ** kwargs ) : if ids : values = Item . select ( ) . where ( Item . id . in_ ( ids ) ) else : values = Item . select ( ) return values
convenience function for returning multiple topic tree nodes for use in rendering content .