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

@@ -20,6 +20,7 @@ from wbcore.contrib.directory.models import Person
20
20
  from wbcore.contrib.documents.models import Document, DocumentType
21
21
  from wbcore.contrib.icons import WBIcon
22
22
  from wbcore.contrib.notifications.dispatch import send_notification
23
+ from wbcore.contrib.notifications.utils import create_notification_type
23
24
  from wbcore.contrib.tags.models import TagModelMixin
24
25
  from wbcore.enums import RequestType
25
26
  from wbcore.markdown.template import resolve_content
@@ -200,7 +201,7 @@ class Article(TagModelMixin, PublishableMixin, WBModel):
200
201
  ]
201
202
 
202
203
  notification_types = [
203
- (
204
+ create_notification_type(
204
205
  "wbwriter.article.notify",
205
206
  "Article Notification",
206
207
  "Sends a notification when something happens in a relevant article.",
@@ -1069,9 +1070,7 @@ class Article(TagModelMixin, PublishableMixin, WBModel):
1069
1070
  if parser.is_valid(raise_exception=False):
1070
1071
  pdf_content = parser.get_file()
1071
1072
  else:
1072
- template_context[
1073
- "content"
1074
- ] = f"""
1073
+ template_context["content"] = f"""
1075
1074
  <p>To generate the PDF, please correct the following errors:</p>
1076
1075
  <ul>
1077
1076
  {''.join([f'<li>{error}</li>' for error in parser.errors])}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wbwriter
3
- Version: 1.44.1
3
+ Version: 1.44.3
4
4
  Author-email: Christopher Wittlinger <c.wittlinger@stainly.com>
5
5
  Requires-Dist: pillow==9.1.*
6
6
  Requires-Dist: reportlab==3.*
@@ -18,7 +18,7 @@ wbwriter/migrations/0010_alter_article_options.py,sha256=S2CVb5wVXHpwok3gehyedMr
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=P8RsyIPqdRq-BPwNHdJmdiYgiVq7BtWqtIMjJbMzGW0,44416
21
+ wbwriter/models/article.py,sha256=uCcFRnH6j--Z2dcznMBCK0Jtobu1moQpeW1WU-qlmLk,44450
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
@@ -70,6 +70,6 @@ wbwriter/viewsets/endpoints/meta_information.py,sha256=m7rVbfTNjsQNibmqtAG4DvXSJ
70
70
  wbwriter/viewsets/titles/__init__.py,sha256=INLTvGeBi5Xro7i3FlJ2fesh-TjKbxRBlfsAyeg3h7k,131
71
71
  wbwriter/viewsets/titles/publication_title_config.py,sha256=EzVGhcRvXspGT8MGah1Dj9LmD2_FBZnX0_Li_8Zs8SE,806
72
72
  wbwriter/viewsets/titles/reviewer_article_title_config.py,sha256=YzRjuUwbe6vBwWhYLrCe6woGCpQ9c7AwkujKqPh5mLw,183
73
- wbwriter-1.44.1.dist-info/METADATA,sha256=s-AURC6OPhYbVNC_c7_7OjW4y_IYFING-PPy1Hnxu2k,230
74
- wbwriter-1.44.1.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
75
- wbwriter-1.44.1.dist-info/RECORD,,
73
+ wbwriter-1.44.3.dist-info/METADATA,sha256=f9N33GZ5DMeBDm7sXP2tZ7hlt6z9mM2zoo1C7rdBfp8,230
74
+ wbwriter-1.44.3.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
75
+ wbwriter-1.44.3.dist-info/RECORD,,