# Path: src/compat.py
# def get_file_dir(filename):
#     if PY2:
#         return os.path.dirname(filename).decode(sys.getfilesystemencoding())
#     else:
#         return os.path.dirname(filename)
# 
# Path: src/plugin_locale.py
# class Locale(object):
# 
#     @classmethod
#     def get_locale(cls):
#         locale = ""
#         try:
#             locale = QSettings().value('locale/userLocale', QLocale().name(), type=str)
#             if len(locale) > 2:
#                 locale = locale[0:2]
#         except:
#             locale = "en_US"
#         return locale


import os
import sys
import datetime
from .compat import get_file_dir
from .plugin_locale import Locale


plugin_dir = get_file_dir(__file__)


class News(object):
	"""docstring for News"""
	def __init__(self, qms_news, date_start=None, date_finish=None):
		super(News, self).__init__()


# Path: src/compat.py
# def get_file_dir(filename):
#     if PY2:
#         return os.path.dirname(filename).decode(sys.getfilesystemencoding())
#     else:
#         return os.path.dirname(filename)
# 
# Path: src/plugin_locale.py
# class Locale(object):
# 
#     @classmethod
#     def get_locale(cls):
#         locale = ""
#         try:
#             locale = QSettings().value('locale/userLocale', QLocale().name(), type=str)
#             if len(locale) > 2:
#                 locale = locale[0:2]
#         except:
#             locale = "en_US"
#         return locale


# Path: src/qms_news.py
import os
import sys
import datetime
from .compat import get_file_dir
from .plugin_locale import Locale



plugin_dir = get_file_dir(__file__)


class News(object):
	"""docstring for News"""
	def __init__(self, qms_news, date_start=None, date_finish=None):
		super(News, self).__init__()


		html = qms_news.get_text(Locale.get_locale())