@require_context
def message_get_all(context, filters=None, marker=None, limit=None, offset=None, sort_keys=None, sort_dirs=None):
 messages = models.Message
 session = get_session()
 with session.begin():
  query = _generate_paginate_query(context, session, marker, limit, sort_keys, sort_dirs, filters, offset, messages)
  if (query is None):
   return []
  results = query.all()
  return _translate_messages(results)

@ require_context def message_get_all ( context , filters = None , marker = None , limit = None , offset = None , sort_keys = None , sort_dirs = None ) : messages = models . Message session = get_session ( ) with session . begin ( ) : query = _generate_paginate_query ( context , session , marker , limit , sort_keys , sort_dirs , filters , offset , messages ) if ( query is None ) : return [ ] results = query . all ( ) return _translate_messages ( results )
retrieves all messages .