def process_message_notification(request, messages_path):
 if (not messages_path):
  return
 global _MESSAGES_CACHE
 global _MESSAGES_MTIME
 if ((_MESSAGES_CACHE is None) or (_MESSAGES_MTIME != os.path.getmtime(messages_path))):
  _MESSAGES_CACHE = _get_processed_messages(messages_path)
  _MESSAGES_MTIME = os.path.getmtime(messages_path)
 for msg in _MESSAGES_CACHE:
  msg.send_message(request)

def process_message_notification ( request , messages_path ) : if ( not messages_path ) : return global _MESSAGES_CACHE global _MESSAGES_MTIME if ( ( _MESSAGES_CACHE is None ) or ( _MESSAGES_MTIME != os . path . getmtime ( messages_path ) ) ) : _MESSAGES_CACHE = _get_processed_messages ( messages_path ) _MESSAGES_MTIME = os . path . getmtime ( messages_path ) for msg in _MESSAGES_CACHE : msg . send_message ( request )
process all the msg file found in the message directory .