wbnews 1.59.10__py2.py3-none-any.whl → 1.59.11__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,7 +3,7 @@ from contextlib import suppress
|
|
|
3
3
|
from datetime import datetime
|
|
4
4
|
|
|
5
5
|
from django.conf.global_settings import LANGUAGES
|
|
6
|
-
from
|
|
6
|
+
from django.utils.module_loading import import_string
|
|
7
7
|
|
|
8
8
|
from .utils import EmlContentParser
|
|
9
9
|
|
|
@@ -26,7 +26,7 @@ def parse(import_source):
|
|
|
26
26
|
# If source define a custom html parser, we import it and convert the returned html
|
|
27
27
|
if html_parser_path := import_source.source.import_parameters.get("html_parser", None):
|
|
28
28
|
with suppress(ModuleNotFoundError):
|
|
29
|
-
html_parser =
|
|
29
|
+
html_parser = import_string(html_parser_path)
|
|
30
30
|
html = html_parser(html)
|
|
31
31
|
|
|
32
32
|
data = {
|
|
@@ -18,7 +18,7 @@ wbnews/import_export/handlers/__init__.py,sha256=zOeENt9cpEcSLG9ZaVb4otmbTnLAa0X
|
|
|
18
18
|
wbnews/import_export/handlers/news.py,sha256=cdrtWIP3XOU8NMYZKF8VLYH5qHmPLboUm_GwNAvO2ew,2181
|
|
19
19
|
wbnews/import_export/parsers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
20
20
|
wbnews/import_export/parsers/emails/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
21
|
-
wbnews/import_export/parsers/emails/news.py,sha256=
|
|
21
|
+
wbnews/import_export/parsers/emails/news.py,sha256=vXK1Mui3v7Qk3Sjj4HgZA0JSTxymD38iqlU-f82GFXU,1221
|
|
22
22
|
wbnews/import_export/parsers/emails/utils.py,sha256=k7R1HZx18FKXRq10COARFgHjjBadsWe1DY3AHCrwHRs,2207
|
|
23
23
|
wbnews/import_export/parsers/rss/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
24
24
|
wbnews/import_export/parsers/rss/news.py,sha256=H89avqOU_AUAyHiIXd_tfoMbcqy67GgDQ2-ucihDpks,2076
|
|
@@ -60,6 +60,6 @@ wbnews/viewsets/endpoints.py,sha256=2slGDJin_SA2heWsIaMdNTUN46FqZJvusbY1jhAaeZM,
|
|
|
60
60
|
wbnews/viewsets/menu.py,sha256=XTShfTIykN9t7oclosPfFVb1r6o46QyglEEe1C7QCMk,979
|
|
61
61
|
wbnews/viewsets/titles.py,sha256=iMyiGBMBpzng8s2ySVLqEOwueHRnAoEuc75dt9nCPjc,1367
|
|
62
62
|
wbnews/viewsets/views.py,sha256=SMCDT6bJMQblyqX5cQ7X3qDe0zxTVWh1q7Aqj0fBo2Q,6795
|
|
63
|
-
wbnews-1.59.
|
|
64
|
-
wbnews-1.59.
|
|
65
|
-
wbnews-1.59.
|
|
63
|
+
wbnews-1.59.11.dist-info/METADATA,sha256=gQG5bTWJpNoka7duoV8bD7pAB-dCpv9ROBkZjnvnzVY,216
|
|
64
|
+
wbnews-1.59.11.dist-info/WHEEL,sha256=aha0VrrYvgDJ3Xxl3db_g_MDIW-ZexDdrc_m-Hk8YY4,105
|
|
65
|
+
wbnews-1.59.11.dist-info/RECORD,,
|
|
File without changes
|