wbwriter 1.44.4__py2.py3-none-any.whl → 1.45.0__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.

Potentially problematic release.


This version of wbwriter might be problematic. Click here for more details.

wbwriter/admin.py CHANGED
@@ -1,5 +1,6 @@
1
1
  from django.contrib import admin
2
2
  from reversion_compare.admin import CompareVersionAdmin
3
+
3
4
  from wbwriter.models import (
4
5
  Article,
5
6
  ArticleType,
@@ -4,6 +4,7 @@ import factory
4
4
  from django.contrib.contenttypes.models import ContentType
5
5
  from wbcore.contrib.authentication.factories.users import InternalUserFactory
6
6
  from wbcore.contrib.directory.factories.entries import PersonFactory
7
+
7
8
  from wbwriter.models import (
8
9
  Article,
9
10
  ArticleType,
@@ -1,4 +1,5 @@
1
1
  import factory
2
+
2
3
  from wbwriter.factories.article import ArticleTypeFactory
3
4
  from wbwriter.models import MetaInformation, MetaInformationInstance
4
5
 
@@ -1,6 +1,7 @@
1
1
  import django_filters
2
2
  from django.db.models import Q
3
3
  from wbcore import filters
4
+
4
5
  from wbwriter.models import Article, ArticleType
5
6
 
6
7
 
@@ -1,4 +1,5 @@
1
1
  from wbcore import filters as wb_filters
2
+
2
3
  from wbwriter.models.meta_information import MetaInformationInstance
3
4
 
4
5
 
@@ -29,11 +29,12 @@ from wbcore.metadata.configs.display.instance_display.shortcuts import (
29
29
  create_simple_display,
30
30
  )
31
31
  from wbcore.models import WBModel
32
+ from weasyprint import CSS
33
+
32
34
  from wbwriter.models.publication_models import Publication
33
35
  from wbwriter.pdf_generator import PdfGenerator
34
36
  from wbwriter.publication_parser import ParserValidationException
35
37
  from wbwriter.typings import ArticleDTO
36
- from weasyprint import CSS
37
38
 
38
39
  from .mixins import PublishableMixin
39
40
 
@@ -11,6 +11,7 @@ from django.template.loader import render_to_string
11
11
  from PIL import Image, ImageOps
12
12
  from slugify import slugify
13
13
  from wbcore.contrib.tags.models import Tag
14
+
14
15
  from wbwriter.pdf_generator import PdfGenerator
15
16
 
16
17
  from .typings import ArticleDTO
@@ -17,6 +17,7 @@ from wbcore.serializers import (
17
17
  register_only_instance_resource,
18
18
  register_resource,
19
19
  )
20
+
20
21
  from wbwriter.models import (
21
22
  Article,
22
23
  ArticleType,
@@ -1,4 +1,5 @@
1
1
  from wbcore.serializers import ModelSerializer, RepresentationSerializer
2
+
2
3
  from wbwriter.models import ArticleType
3
4
 
4
5
 
@@ -1,4 +1,5 @@
1
1
  from wbcore.serializers import HyperlinkField, ModelSerializer, RepresentationSerializer
2
+
2
3
  from wbwriter.models import InEditorTemplate
3
4
 
4
5
 
@@ -1,4 +1,5 @@
1
1
  from wbcore.serializers import ModelSerializer, RepresentationSerializer
2
+
2
3
  from wbwriter.models import MetaInformation, MetaInformationInstance
3
4
 
4
5
  from .article_type import ArticleTypeRepresentationSerializer
@@ -10,6 +10,7 @@ from wbcore.serializers import (
10
10
  TextAreaField,
11
11
  register_resource,
12
12
  )
13
+
13
14
  from wbwriter.models import Publication, PublicationParser
14
15
 
15
16
 
@@ -4,6 +4,7 @@ from django.shortcuts import get_object_or_404
4
4
  from django.template import Context, Template
5
5
  from slugify import slugify
6
6
  from wbcore.markdown.template import load_registered_templatetags
7
+
7
8
  from wbwriter.models import Article
8
9
 
9
10
  register = template.Library()
wbwriter/urls.py CHANGED
@@ -1,5 +1,6 @@
1
1
  from django.urls import include, path
2
2
  from wbcore.routers import WBCoreRouter
3
+
3
4
  from wbwriter import viewsets
4
5
 
5
6
  router = WBCoreRouter()
@@ -10,6 +10,7 @@ from wbcore.contrib.authentication.authentication import JWTCookieAuthentication
10
10
  from wbcore.contrib.directory.models import Person
11
11
  from wbcore.utils.views import CloneMixin
12
12
  from wbcore.viewsets import ModelViewSet, RepresentationViewSet
13
+
13
14
  from wbwriter.filters.article import ArticleFilter
14
15
  from wbwriter.models import Article, can_access_article
15
16
  from wbwriter.models.article import (
@@ -1,4 +1,5 @@
1
1
  from wbcore.viewsets import ModelViewSet, RepresentationViewSet
2
+
2
3
  from wbwriter.models import ArticleType
3
4
  from wbwriter.serializers import (
4
5
  ArticleTypeModelSerializer,
@@ -9,6 +9,7 @@ from wbcore.metadata.configs.buttons.view_config import ButtonViewConfig
9
9
  from wbcore.metadata.configs.display.instance_display.shortcuts import (
10
10
  create_simple_display,
11
11
  )
12
+
12
13
  from wbwriter.models.article import Article
13
14
 
14
15
 
@@ -15,6 +15,7 @@ from wbcore.metadata.configs.display.instance_display import (
15
15
  )
16
16
  from wbcore.metadata.configs.display.instance_display.operators import default
17
17
  from wbcore.metadata.configs.display.view_config import DisplayViewConfig
18
+
18
19
  from wbwriter.models import Article
19
20
 
20
21
 
@@ -1,4 +1,5 @@
1
1
  from wbcore.viewsets import ModelViewSet, RepresentationViewSet
2
+
2
3
  from wbwriter.models import InEditorTemplate
3
4
  from wbwriter.serializers import (
4
5
  InEditorTemplateModelSerializer,
@@ -1,4 +1,5 @@
1
1
  from wbcore.viewsets import ModelViewSet, RepresentationViewSet
2
+
2
3
  from wbwriter.models import MetaInformation
3
4
  from wbwriter.serializers import MetaInformationModelSerializer
4
5
  from wbwriter.serializers.meta_information import (
@@ -1,4 +1,5 @@
1
1
  from wbcore.viewsets import ModelViewSet, RepresentationViewSet
2
+
2
3
  from wbwriter.models.meta_information import MetaInformationInstance
3
4
  from wbwriter.serializers.meta_information import (
4
5
  MetaInformationInstanceModelSerializer,
@@ -1,5 +1,6 @@
1
1
  from reversion.views import RevisionMixin
2
2
  from wbcore.viewsets import ModelViewSet, RepresentationViewSet
3
+
3
4
  from wbwriter.models import Publication
4
5
  from wbwriter.models.publication_models import PublicationParser
5
6
  from wbwriter.serializers import (
@@ -1,4 +1,5 @@
1
1
  from wbcore.metadata.configs.titles import TitleViewConfig
2
+
2
3
  from wbwriter.models import Publication
3
4
 
4
5
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wbwriter
3
- Version: 1.44.4
3
+ Version: 1.45.0
4
4
  Author-email: Christopher Wittlinger <c.wittlinger@stainly.com>
5
5
  Requires-Dist: pillow==9.1.*
6
6
  Requires-Dist: reportlab==3.*
@@ -1,24 +1,24 @@
1
1
  wbwriter/__init__.py,sha256=J-j-u0itpEFT6irdmWmixQqYMadNl1X91TxUmoiLHMI,22
2
- wbwriter/admin.py,sha256=Pagj9JgNlRRrwQSn2I63iuzalOHjEtKjqQi5S9N2hdo,3625
2
+ wbwriter/admin.py,sha256=rnIiwWBB5I8QUYGSsLMrPn9weBqLt10eXhIYEFoPP9w,3626
3
3
  wbwriter/apps.py,sha256=UdEgUQGJaw3f6fkHlbL4kNC4CyksLOBL7ZpDBJmqD_U,91
4
4
  wbwriter/dynamic_preferences_registry.py,sha256=yt3PJCuTv5TpHM2hQsTR-aNllRY20_pyo-wcS38DruU,594
5
5
  wbwriter/pdf_generator.py,sha256=AYjcVaCnrV2D4lmCSOJUGCPq4wqH9fPFJoCDkNUV0j4,6640
6
- wbwriter/publication_parser.py,sha256=2GjtCgX9o-zYfzIaNveBqJtPu9bSL_yDn-4u6IBEVWE,9349
6
+ wbwriter/publication_parser.py,sha256=dRbNPGhAgFXNyGpwnWLk4ZpOmhWRgxFNj5Bp-nLQuJo,9350
7
7
  wbwriter/typings.py,sha256=-SsobxnS4-hCOL_44n-QcXXv1FuhZsQAwLj9BybtEVU,501
8
- wbwriter/urls.py,sha256=uL04HSQ3EuYcA9L0M912GrS7rbXTo2RL3qhj1U_-pbY,2630
8
+ wbwriter/urls.py,sha256=gUVYDOuPjX15apIC-N1caJnL6DfOYHwjCnZkIpNI3W4,2631
9
9
  wbwriter/factories/__init__.py,sha256=NrHTM4vUVdLASCeSAYkklmBbtP2B5kQ5gwlZey5lp0o,364
10
- wbwriter/factories/article.py,sha256=7GIMhpO1DDezlwW226yeIKzLPTlQyFKvq8sVVOMfMVs,5784
11
- wbwriter/factories/meta_information.py,sha256=cEbMStmq_yNN7cH3ptHGQaWs-4jjwE0fuzZO62lWdI4,923
10
+ wbwriter/factories/article.py,sha256=Ugk2nz99_BP4E3FgvVdNjglkalx3dakU42oULxPQJN4,5785
11
+ wbwriter/factories/meta_information.py,sha256=DrjYxvkQ9F7dY6mwbT7Xqg24_7Ge8FdiYegHpPMLFCM,924
12
12
  wbwriter/filters/__init__.py,sha256=2OTkcXa8veIWN-v_WV5mHvGuw3tIuJzh9qD2zaFrA4M,102
13
- wbwriter/filters/article.py,sha256=xW8rg6vgRP6_guXO0QcaaopQiOUcV9D5Xs7L3f0iIHQ,1576
14
- wbwriter/filters/metainformationinstance.py,sha256=oVj2izoG0mj1tPfhzKFJMevGkKxKTW4LBWzaktmy7DM,856
13
+ wbwriter/filters/article.py,sha256=YiQv42bw9H-gfxwfS16B1PyaujZqBe28N8X54ORD4R8,1577
14
+ wbwriter/filters/metainformationinstance.py,sha256=gacS7nxEFrosP7AApXebZ73n4r7ST-ghsQzxIFS8UAA,857
15
15
  wbwriter/migrations/0001_initial_squashed_squashed_0008_alter_article_author_alter_article_feedback_contact_and_more.py,sha256=31Fo3O3Azaqe59v1CGWXtj4oLy349PmTnDI7S6oBg2U,26174
16
16
  wbwriter/migrations/0009_dependantarticle.py,sha256=OCxWFj68ToPelJJ_Hlrt3PXZy56zvup8YWpCoAjU62g,1314
17
17
  wbwriter/migrations/0010_alter_article_options.py,sha256=S2CVb5wVXHpwok3gehyedMrZMVbwj75m6LkrVg5dhv8,520
18
18
  wbwriter/migrations/0011_auto_20240103_0953.py,sha256=UnaHFJM7DVOSEfS0wm8rWEh9H2_wDcmKPYFRJYIx1Gs,1321
19
19
  wbwriter/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
20
  wbwriter/models/__init__.py,sha256=opUUL36nRzxJypQNupPM8NxUj-u4uuB11IDn5XSkjVE,248
21
- wbwriter/models/article.py,sha256=uCcFRnH6j--Z2dcznMBCK0Jtobu1moQpeW1WU-qlmLk,44450
21
+ wbwriter/models/article.py,sha256=TztDqKHhRvMzFuQ-K7TNEH2wIvXnjI5OGCf1sqnbBcI,44451
22
22
  wbwriter/models/article_type.py,sha256=hofB200Y11LFanpICNgWYDa5-Qg-K4X2fXv6qccBP_0,1999
23
23
  wbwriter/models/block.py,sha256=tn2sklo7s401Y0Ww5M09Y9Wv-yivEvAR1eM5raG7gtc,835
24
24
  wbwriter/models/block_parameter.py,sha256=bHBp9bo5EEiZKTzhYfBwkidcS6kZVy81vtcAlx7xzck,524
@@ -29,17 +29,17 @@ wbwriter/models/publication_models.py,sha256=u7JHwnsIcrGxqgwsY6WqyDSuOtz5FUy3NYs
29
29
  wbwriter/models/style.py,sha256=b-CnU9K5D6adePdz4LpCdwXjK2750V3QnFv39wK-JLA,262
30
30
  wbwriter/models/template.py,sha256=i6b_qmkUJIbrFqNaeld3gSjR7GLeU-EfKJiPsfjFA_Y,928
31
31
  wbwriter/serializers/__init__.py,sha256=zPzGMOsxp8yEZ5m2sATEeqlZaktNWbXCx8oZefeiCa4,828
32
- wbwriter/serializers/article.py,sha256=4sfmpOOP2_mIgdhvzHX62wmrmtGSKqhJy9ADIT0yneM,13494
33
- wbwriter/serializers/article_type.py,sha256=uEEHQZmf45xw8Lbak9HhBaW9ruZFCMe6WYy27W10D8k,425
34
- wbwriter/serializers/in_editor_template.py,sha256=lC5ZHbzQHp3raEuHgWpSEtepbYYSrUEyQbOcNMtWxkM,1031
35
- wbwriter/serializers/meta_information.py,sha256=wSkrMOtX0MzmwUjTE8takluVCZ5cOytFSW44gSbTIjg,2045
36
- wbwriter/serializers/publication.py,sha256=bMTQoZ_sICymrZ0ZpQnv6Bez1ibFUzfQImwc2hvLRT4,2500
32
+ wbwriter/serializers/article.py,sha256=PbBL7BMgy9D2USWCGxt15eOd7pv-EHZ6jykh8gWWu78,13495
33
+ wbwriter/serializers/article_type.py,sha256=VmMVI0dreuX83GtwtzD0n3-tvmNMnbtc2KIqjAB7beI,426
34
+ wbwriter/serializers/in_editor_template.py,sha256=hZ0icXVJtiipFSzY3cF0p6X4_0XaKdeMYwjUhgPoDLI,1032
35
+ wbwriter/serializers/meta_information.py,sha256=zMNU6WYXJVO5L29Depm6FB-FnFMrnAttRI32PmNpt3w,2046
36
+ wbwriter/serializers/publication.py,sha256=AKDy0PHEgG5Gc3rcCZ4kiihVsKjwDy7dxX3mp1rcwpc,2501
37
37
  wbwriter/templates/wbwriter/article_pdf.html,sha256=odxCwFQpJXBOEmnHwau8ijibNtdteqP8ZlIRV_-KRQs,181
38
38
  wbwriter/templates/wbwriter/templatetags/cite_article.html,sha256=OJ7g8sM1ES_S0GpkWC3o12WnmbUm3_R4UemdJHLvTT8,98
39
39
  wbwriter/templates/wbwriter/templatetags/table_of_contents.html,sha256=ip4Xz3amxcM2rI8ZNw5_ZuZ6UMuag2E2b-O831aMNN0,287
40
40
  wbwriter/templates/wbwriter/templatetags/table_of_contents_articles.html,sha256=1SDRU2qQbfMrLKXVlJ6f34g5CIZJt0aRa17N_2VWZkw,325
41
41
  wbwriter/templatetags/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
42
- wbwriter/templatetags/writer.py,sha256=YJ6vaqRF22JinE-wcxWE4_-5jWXeL7Ov-puyfoySuds,3050
42
+ wbwriter/templatetags/writer.py,sha256=8bhOxG0U23A30KcAWcXJa3lOon_2acPZp49ZJMWAiBM,3051
43
43
  wbwriter/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
44
44
  wbwriter/tests/conftest.py,sha256=1vehReFFD4YZHYbOeCEFIuufIeC1QmbUV0mS4VmAXKU,982
45
45
  wbwriter/tests/signals.py,sha256=ay1kQIaHT7a_kymGimdq1MWj_8UjNqlYW-oyN13WK6c,989
@@ -48,16 +48,16 @@ wbwriter/tests/test_model.py,sha256=pOdwMkgvEL8kWnT6QT4xCn7GU_jxxL5xgorg5F8jrLk,
48
48
  wbwriter/tests/test_writer.py,sha256=XRmfaH-o4ItekFjw1dnIyMzw7veTCw6KH_PouQgFRRQ,1584
49
49
  wbwriter/tests/tests.py,sha256=9quRn44Xi1XIKKIXKCBRmtSpARJowjm7_Edw40Mutdw,332
50
50
  wbwriter/viewsets/__init__.py,sha256=FSoHcwxYukis44flBOwKaoa6fABkNI66lzaTXaYEZxk,722
51
- wbwriter/viewsets/article.py,sha256=_1ftBoXh0UwqZBZ-CMRSlJ84gRcQhoq9FJ6pnruE2OU,9705
52
- wbwriter/viewsets/article_type.py,sha256=YgsxYixelO903sFguSSXSOTPMjPkOCoLcKyylZTMJFw,1502
53
- wbwriter/viewsets/buttons.py,sha256=4XPCOaUYSKur0n2pjVzcWPW8rW0g4bKugJPqWaIp68E,2843
54
- wbwriter/viewsets/in_editor_template.py,sha256=q0JcJur5wP87aT68HAcg538JwxbzCV6Wgc09Z8tAliI,1712
51
+ wbwriter/viewsets/article.py,sha256=virp7CYjVaeAabzvAezMq7SxyWd4x2EfoOh0Nk8qoh0,9706
52
+ wbwriter/viewsets/article_type.py,sha256=wEeJXy3uPav0ZrV3sD1UHEpKdH37ZjwssKeNfaJJV4s,1503
53
+ wbwriter/viewsets/buttons.py,sha256=6ClY6ddqiPheulgz2j_kw80YqjMgXBt1G4_sSiYE-Tg,2844
54
+ wbwriter/viewsets/in_editor_template.py,sha256=6ocFTerOYKrAoVTXKI8yEaDInGVpgiyI0tl1E4otusY,1713
55
55
  wbwriter/viewsets/menu.py,sha256=SE-y6PIeamISF_DOJVCYtTKbTVTZQs0Hk5aSrBYib-Q,1472
56
- wbwriter/viewsets/meta_information.py,sha256=fazKgKDD0gonnN-RHd4fGcKTXCke3og7DS6kh5lc11Y,1587
57
- wbwriter/viewsets/meta_information_instance.py,sha256=ZGTxjrupbCjjVBi8BQLXuZ1vNRHjB-dVBVkPapPlK1E,1694
58
- wbwriter/viewsets/publication.py,sha256=TG_DNlQcYH-lT4owNc1zCSzAB89M_R9dykJGILj7s0A,4032
56
+ wbwriter/viewsets/meta_information.py,sha256=W4Vi4BYCGUEZ9ncRY-Unj5jq3AqCMl27gafYD589VbQ,1588
57
+ wbwriter/viewsets/meta_information_instance.py,sha256=G03z5wNSg-04GA3gF1fejP0EPJiBGIHFhJsMzInBab4,1695
58
+ wbwriter/viewsets/publication.py,sha256=5z8Hbjt8iTBQ87H4WrJvDFVVWNWefrS0MIIzcgAiCyc,4033
59
59
  wbwriter/viewsets/display/__init__.py,sha256=Jd-MWVcTEko7Ap9pbfURogzIjy5gKeb18KcYJfZjOQs,403
60
- wbwriter/viewsets/display/article.py,sha256=P8JbmZX6vK7qrRNZCXnolxWK88JLb9Tej7SU52PdRXk,16701
60
+ wbwriter/viewsets/display/article.py,sha256=s8vUqOXvyyd89iYI7CBSkX4iDDLg9XSGJj_MrBh3QM0,16702
61
61
  wbwriter/viewsets/display/article_type.py,sha256=FV8nvnhY7MLaZbmtV59V33b2goH8QCWl9MrFJJ-Acf8,900
62
62
  wbwriter/viewsets/display/in_editor_template.py,sha256=jGUb32byyK9KwBd6ZPcJ0m0e2WW-QBm7aP2TkLkQYl0,1490
63
63
  wbwriter/viewsets/display/meta_information.py,sha256=jGxMsZHwiY7fmfXz7nktRyQtPdTs3PydkKx0CrNf0qo,1384
@@ -68,8 +68,8 @@ wbwriter/viewsets/endpoints/__init__.py,sha256=sqNwR-IiHFhX1287fdk27IEUuAPHG0l1V
68
68
  wbwriter/viewsets/endpoints/article.py,sha256=QlMbNkKEEZisYdO8burkoJ12rPcNMMonxK5DW7VHiac,515
69
69
  wbwriter/viewsets/endpoints/meta_information.py,sha256=m7rVbfTNjsQNibmqtAG4DvXSJhxQMZlFx4fE9YrrgwA,594
70
70
  wbwriter/viewsets/titles/__init__.py,sha256=INLTvGeBi5Xro7i3FlJ2fesh-TjKbxRBlfsAyeg3h7k,131
71
- wbwriter/viewsets/titles/publication_title_config.py,sha256=EzVGhcRvXspGT8MGah1Dj9LmD2_FBZnX0_Li_8Zs8SE,806
71
+ wbwriter/viewsets/titles/publication_title_config.py,sha256=-39C_Enz8J1o-DWgRz89VFMV0r4MReKx-r-Tpf9MlVM,807
72
72
  wbwriter/viewsets/titles/reviewer_article_title_config.py,sha256=YzRjuUwbe6vBwWhYLrCe6woGCpQ9c7AwkujKqPh5mLw,183
73
- wbwriter-1.44.4.dist-info/METADATA,sha256=iuD2HfElRxcI4M75jzV5awm-FfvyZCyoY9bcAsDdtdc,230
74
- wbwriter-1.44.4.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
75
- wbwriter-1.44.4.dist-info/RECORD,,
73
+ wbwriter-1.45.0.dist-info/METADATA,sha256=EzfwzXPEGo1RS1qAO6LWSDbfnCCbidLnBlh83W4ysjE,230
74
+ wbwriter-1.45.0.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
75
+ wbwriter-1.45.0.dist-info/RECORD,,