picata 0.0.12__py3-none-any.whl → 0.0.13__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.
- picata/blocks.py +1 -1
- picata/models.py +13 -10
- picata/views.py +8 -0
- {picata-0.0.12.dist-info → picata-0.0.13.dist-info}/METADATA +1 -1
- {picata-0.0.12.dist-info → picata-0.0.13.dist-info}/RECORD +7 -7
- {picata-0.0.12.dist-info → picata-0.0.13.dist-info}/WHEEL +0 -0
- {picata-0.0.12.dist-info → picata-0.0.13.dist-info}/licenses/LICENSE.md +0 -0
picata/blocks.py
CHANGED
@@ -113,8 +113,8 @@ class CodeBlock(StructBlock):
|
|
113
113
|
("plaintext", "Plain Text"),
|
114
114
|
("bash", "Bash"),
|
115
115
|
("css", "CSS"),
|
116
|
-
("javascript", "JavaScript"),
|
117
116
|
("html", "HTML"),
|
117
|
+
("javascript", "JavaScript"),
|
118
118
|
("python", "Python"),
|
119
119
|
("toml", "TOML"),
|
120
120
|
("yaml", "YAML"),
|
picata/models.py
CHANGED
@@ -31,7 +31,7 @@ from wagtail.contrib.settings.models import BaseSiteSetting, register_setting
|
|
31
31
|
from wagtail.fields import RichTextField, StreamField
|
32
32
|
from wagtail.images.blocks import ImageChooserBlock
|
33
33
|
from wagtail.images.models import Image
|
34
|
-
from wagtail.models import Page, PageManager
|
34
|
+
from wagtail.models import Page, PageManager, PanelPlaceholder
|
35
35
|
from wagtail.query import PageQuerySet
|
36
36
|
from wagtail.search import index
|
37
37
|
from wagtail_modeladmin.options import ModelAdmin
|
@@ -210,7 +210,7 @@ class TaggedPage(BasePage):
|
|
210
210
|
help_text="Tags for the article.",
|
211
211
|
)
|
212
212
|
|
213
|
-
promote_panels: ClassVar[list[
|
213
|
+
promote_panels: ClassVar[list[PanelPlaceholder | FieldPanel]] = [
|
214
214
|
FieldPanel("tags"),
|
215
215
|
*BasePage.promote_panels,
|
216
216
|
]
|
@@ -237,7 +237,7 @@ class BasicPage(BasePage):
|
|
237
237
|
help_text="Main content for the page.",
|
238
238
|
)
|
239
239
|
|
240
|
-
content_panels: ClassVar[list[FieldPanel]] = [
|
240
|
+
content_panels: ClassVar[list[PanelPlaceholder | FieldPanel]] = [
|
241
241
|
*BasePage.content_panels,
|
242
242
|
FieldPanel("content"),
|
243
243
|
]
|
@@ -265,7 +265,7 @@ class SplitViewPage(BasePage):
|
|
265
265
|
help_text="Main content for the split-view page.",
|
266
266
|
)
|
267
267
|
|
268
|
-
content_panels: ClassVar[list[FieldPanel]] = [
|
268
|
+
content_panels: ClassVar[list[PanelPlaceholder | FieldPanel]] = [
|
269
269
|
*BasePage.content_panels,
|
270
270
|
FieldPanel("content"),
|
271
271
|
]
|
@@ -377,13 +377,13 @@ class Article(SeriesPostMixin, TaggedPage):
|
|
377
377
|
help_text="Select the type of article.",
|
378
378
|
)
|
379
379
|
|
380
|
-
promote_panels: ClassVar[list[
|
380
|
+
promote_panels: ClassVar[list[PanelPlaceholder | FieldPanel]] = [
|
381
381
|
FieldPanel("summary"),
|
382
382
|
FieldPanel("page_type"),
|
383
383
|
*TaggedPage.promote_panels,
|
384
384
|
]
|
385
385
|
|
386
|
-
content_panels: ClassVar[list[
|
386
|
+
content_panels: ClassVar[list[PanelPlaceholder | FieldPanel]] = [
|
387
387
|
*TaggedPage.content_panels,
|
388
388
|
FieldPanel("tagline"),
|
389
389
|
FieldPanel("content"),
|
@@ -429,7 +429,10 @@ class PostGroupPage(BasePage):
|
|
429
429
|
|
430
430
|
intro = RichTextField(blank=True, help_text="An optional introduction to this group.")
|
431
431
|
|
432
|
-
content_panels: ClassVar[list[
|
432
|
+
content_panels: ClassVar[list[PanelPlaceholder | FieldPanel]] = [
|
433
|
+
*BasePage.content_panels,
|
434
|
+
FieldPanel("intro"),
|
435
|
+
]
|
433
436
|
|
434
437
|
def get_context(
|
435
438
|
self, request: HttpRequest, *args: Args, **kwargs: Kwargs
|
@@ -520,7 +523,7 @@ class HomePage(BasePage):
|
|
520
523
|
help_text="Content stream rendered under 'Recent posts'",
|
521
524
|
)
|
522
525
|
|
523
|
-
content_panels: ClassVar[list[FieldPanel]] = [
|
526
|
+
content_panels: ClassVar[list[PanelPlaceholder | FieldPanel]] = [
|
524
527
|
*BasePage.content_panels,
|
525
528
|
FieldPanel("top_content"),
|
526
529
|
FieldPanel("bottom_content"),
|
@@ -576,12 +579,12 @@ class PostSeries(BasePage):
|
|
576
579
|
help_text="Content to introduce the series of articles.",
|
577
580
|
)
|
578
581
|
|
579
|
-
promote_panels: ClassVar[list[
|
582
|
+
promote_panels: ClassVar[list[PanelPlaceholder | FieldPanel]] = [
|
580
583
|
FieldPanel("summary"),
|
581
584
|
*BasePage.promote_panels,
|
582
585
|
]
|
583
586
|
|
584
|
-
content_panels: ClassVar[list[FieldPanel]] = [
|
587
|
+
content_panels: ClassVar[list[PanelPlaceholder | FieldPanel]] = [
|
585
588
|
*BasePage.content_panels,
|
586
589
|
FieldPanel("introduction"),
|
587
590
|
]
|
picata/views.py
CHANGED
@@ -53,6 +53,14 @@ class PostsFeed(Feed):
|
|
53
53
|
"""Return the article creation date."""
|
54
54
|
return item.first_published_at
|
55
55
|
|
56
|
+
def item_updateddate(self, item: Article) -> datetime:
|
57
|
+
"""Return the article creation date."""
|
58
|
+
return item.last_published_at
|
59
|
+
|
60
|
+
def item_author_name(self, item: Article) -> str:
|
61
|
+
"""Return the name of the author."""
|
62
|
+
return "Ada Wright"
|
63
|
+
|
56
64
|
|
57
65
|
class RSSArticleFeed(PostsFeed):
|
58
66
|
"""RSS feed for articles."""
|
@@ -806,14 +806,14 @@ styles.sass,sha256=SCG5WCr0jIGzdM_Vp_j_gKxFfcTsTwLWOmaEc6uMpvU,8501
|
|
806
806
|
components/HelloWorld.tsx,sha256=Kp7gvhGehfrX1mw0jgr2_D6AueFgqgfMYGkyQgvWekg,180
|
807
807
|
picata/__init__.py,sha256=ZCIoFQ_z3ias_sP4C77EU2IUJnyv4qR0xUdJ3PIdLLM,48
|
808
808
|
picata/apps.py,sha256=kr6OBcYbBw9HCGG-PkoMTHR4QeyzJO8_KIWTljCTHRo,1255
|
809
|
-
picata/blocks.py,sha256=
|
809
|
+
picata/blocks.py,sha256=Dqx6YQ23K9zDUDiC1mn-WKp58Ae-wbU0IW_AD2Yj4cI,5363
|
810
810
|
picata/log_utils.py,sha256=BRdB3PqpFx1XAhIyAzIOyQKiqrjbT3PBmkhH6-wAWJg,1555
|
811
811
|
picata/middleware.py,sha256=BbAifo--C4VYg1VhU8_qbdDcJUD9zYdbxU_9nqGpMa8,2067
|
812
|
-
picata/models.py,sha256=
|
812
|
+
picata/models.py,sha256=c-_nt8NrZ4nkMc7SEkT_34ucpaSTWLREEyBP-Beptws,21414
|
813
813
|
picata/transformers.py,sha256=3gcWXKiZlT9RDiqZ7QdpuG293aqgvANnlQec-vCOa54,2319
|
814
814
|
picata/urls.py,sha256=DlAOlkAeAHTCl4txY9rxtgc6vp822Ei2niiaiej29Sk,1988
|
815
815
|
picata/validators.py,sha256=X4wdIxbCdmuU-gJv45ptTFB7kHR166jkSQBJiTzP3ZU,1517
|
816
|
-
picata/views.py,sha256=
|
816
|
+
picata/views.py,sha256=qheMXEKDCkygQWxdJqO0pOrchKPQPTmSE2KuvW-yJvE,4411
|
817
817
|
picata/wagtail_hooks.py,sha256=R1YgJwp_ZvYm65b_xvLS8HiBWxflXFXSB4SksbJxW3k,1500
|
818
818
|
picata/wsgi.py,sha256=5vKFvebtHzxKb3BRVqps6SEKjWmOecBIkTwf4LqWJ0Q,398
|
819
819
|
picata/helpers/__init__.py,sha256=jXzLKC57gZD9C0DLr9squUxZRPCq1UOx45N11vcpiNQ,2428
|
@@ -870,7 +870,7 @@ picata/templatetags/tags/absolute_static.py,sha256=JNqNCMGIgiQDYdz44T5AB2l0yJTd_
|
|
870
870
|
picata/templatetags/tags/menu_tags.py,sha256=PHuXl4QmIqycWilAyz1fjD_0uJxOSrCW7RnZxmR3Oh0,1860
|
871
871
|
picata/typing/__init__.py,sha256=IN2hRqUic2c50o0MOJjnAy7wdhvcnUG8vBJ5mUxfXz4,530
|
872
872
|
picata/typing/wagtail.py,sha256=V0n9GYYb_CM5ic54lcRtpN6lhN37-QdRzz2mGKm3Cwc,664
|
873
|
-
picata-0.0.
|
874
|
-
picata-0.0.
|
875
|
-
picata-0.0.
|
876
|
-
picata-0.0.
|
873
|
+
picata-0.0.13.dist-info/METADATA,sha256=NEmCVCafyRvHfG4W_fWRxJ6eDjzyfDD7o0-EPmTrbzM,5093
|
874
|
+
picata-0.0.13.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
875
|
+
picata-0.0.13.dist-info/licenses/LICENSE.md,sha256=Bv8sMyZI5NI6DMrfiAvCwIFRLSfJkimLF2KVcUMteKU,1103
|
876
|
+
picata-0.0.13.dist-info/RECORD,,
|
File without changes
|
File without changes
|