richie 2.32.1.dev4__py2.py3-none-any.whl → 2.32.1.dev6__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 richie might be problematic. Click here for more details.

@@ -373,47 +373,57 @@ SINGLECOLUMN_CONTENT.update(getattr(settings, "RICHIE_DEMO_SINGLECOLUMN_CONTENT"
373
373
 
374
374
  FOOTER_CONTENT = {
375
375
  "en": [
376
- {"name": "About", "internal_link": "annex__about"},
377
- {"name": "Sitemap", "internal_link": "annex__sitemap"},
378
- {"name": "Style guide", "external_link": "/styleguide/"},
376
+ {"name": "About", "link": {"internal_link": "annex__about"}},
377
+ {"name": "Sitemap", "link": {"internal_link": "annex__sitemap"}},
378
+ {"name": "Style guide", "link": {"external_link": "/styleguide/"}},
379
379
  {
380
380
  "title": "Richie community",
381
381
  "items": [
382
- {"name": "Website", "external_link": "https://richie.education"},
382
+ {
383
+ "name": "Website",
384
+ "link": {"external_link": "https://richie.education"},
385
+ },
383
386
  {
384
387
  "name": "Github",
385
- "external_link": "https://github.com/openfun/richie",
388
+ "link": {"external_link": "https://github.com/openfun/richie"},
386
389
  },
387
390
  {
388
391
  "name": "Site factory",
389
- "external_link": "https://github.com/openfun/richie-site-factory",
392
+ "link": {
393
+ "external_link": "https://github.com/openfun/richie-site-factory"
394
+ },
390
395
  },
391
396
  {
392
397
  "name": "Example site",
393
- "external_link": "https://www.fun-campus.fr",
398
+ "link": {"external_link": "https://www.fun-campus.fr"},
394
399
  },
395
400
  ],
396
401
  },
397
402
  ],
398
403
  "fr": [
399
- {"name": "A propos", "internal_link": "annex__about"},
400
- {"name": "Plan du site", "internal_link": "annex__sitemap"},
401
- {"name": "Style guide", "external_link": "/styleguide/"},
404
+ {"name": "A propos", "link": {"internal_link": "annex__about"}},
405
+ {"name": "Plan du site", "link": {"internal_link": "annex__sitemap"}},
406
+ {"name": "Style guide", "link": {"external_link": "/styleguide/"}},
402
407
  {
403
408
  "title": "Communauté Richie",
404
409
  "items": [
405
- {"name": "Site web", "external_link": "https://richie.education"},
410
+ {
411
+ "name": "Site web",
412
+ "link": {"external_link": "https://richie.education"},
413
+ },
406
414
  {
407
415
  "name": "Github",
408
- "external_link": "https://github.com/openfun/richie",
416
+ "link": {"external_link": "https://github.com/openfun/richie"},
409
417
  },
410
418
  {
411
419
  "name": "Usine à sites",
412
- "external_link": "https://github.com/openfun/richie-site-factory",
420
+ "link": {
421
+ "external_link": "https://github.com/openfun/richie-site-factory"
422
+ },
413
423
  },
414
424
  {
415
425
  "name": "Site exemple",
416
- "external_link": "https://www.fun-campus.fr",
426
+ "link": {"external_link": "https://www.fun-campus.fr"},
417
427
  },
418
428
  ],
419
429
  },
@@ -81,6 +81,9 @@ def create_demo_site():
81
81
  # Create pages as described in PAGES_INFOS
82
82
  pages_created = recursive_page_creation(site, defaults.PAGES_INFO)
83
83
 
84
+ def get_internal_link(page):
85
+ return f"cms.page:{page.id}"
86
+
84
87
  # Create the footer links
85
88
  def create_footer_link(**link_info):
86
89
  """
@@ -89,9 +92,10 @@ def create_demo_site():
89
92
  Links can be nested into a NestedItemPlugin, in this case link_info contains
90
93
  a target key.
91
94
  """
92
- if "internal_link" in link_info:
95
+ if "internal_link" in link_info["link"]:
93
96
  link_info = link_info.copy()
94
- link_info["internal_link"] = pages_created[link_info["internal_link"]]
97
+ link_page = pages_created[link_info["link"]["internal_link"]]
98
+ link_info["link"] = {"internal_link": get_internal_link(link_page)}
95
99
  add_plugin(plugin_type="LinkPlugin", **link_info)
96
100
 
97
101
  footer_static_ph = StaticPlaceholder.objects.get_or_create(code="footer")[0]
@@ -486,7 +490,7 @@ def create_demo_site():
486
490
  target=courses_section,
487
491
  name=content["courses_button_title"],
488
492
  template=content["button_template_name"],
489
- internal_link=pages_created["courses"],
493
+ link={"internal_link": get_internal_link(pages_created["courses"])},
490
494
  )
491
495
 
492
496
  # Add highlighted blogposts
@@ -512,7 +516,7 @@ def create_demo_site():
512
516
  target=blogposts_section,
513
517
  name=content["blogposts_button_title"],
514
518
  template=content["button_template_name"],
515
- internal_link=pages_created["blogposts"],
519
+ link={"internal_link": get_internal_link(pages_created["blogposts"])},
516
520
  )
517
521
 
518
522
  # Add highlighted programs
@@ -538,7 +542,7 @@ def create_demo_site():
538
542
  target=programs_section,
539
543
  name=content["programs_button_title"],
540
544
  template=content["button_template_name"],
541
- internal_link=pages_created["programs"],
545
+ link={"internal_link": get_internal_link(pages_created["programs"])},
542
546
  )
543
547
 
544
548
  # Add highlighted organizations
@@ -566,7 +570,7 @@ def create_demo_site():
566
570
  target=organizations_section,
567
571
  name=content["organizations_button_title"],
568
572
  template=content["button_template_name"],
569
- internal_link=pages_created["organizations"],
573
+ link={"internal_link": get_internal_link(pages_created["organizations"])},
570
574
  )
571
575
 
572
576
  # Add highlighted subjects
@@ -592,7 +596,7 @@ def create_demo_site():
592
596
  target=subjects_section,
593
597
  name=content["subjects_button_title"],
594
598
  template=content["button_template_name"],
595
- internal_link=pages_created["categories"],
599
+ link={"internal_link": get_internal_link(pages_created["categories"])},
596
600
  )
597
601
 
598
602
  # Add highlighted persons
@@ -618,7 +622,7 @@ def create_demo_site():
618
622
  target=persons_section,
619
623
  name=content["persons_button_title"],
620
624
  template=content["button_template_name"],
621
- internal_link=pages_created["persons"],
625
+ link={"internal_link": get_internal_link(pages_created["persons"])},
622
626
  )
623
627
 
624
628
  # Add Glimpse quotes with empty title
@@ -756,7 +760,7 @@ def create_demo_site():
756
760
  target=sample_section,
757
761
  name=content["section_sample_button_title"],
758
762
  template=content["button_template_name"],
759
- internal_link=pages_created["home"],
763
+ link={"internal_link": get_internal_link(pages_created["home"])},
760
764
  )
761
765
  # Add a licence
762
766
  if licences:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: richie
3
- Version: 2.32.1.dev4
3
+ Version: 2.32.1.dev6
4
4
  Summary: A CMS to build learning portals for open education
5
5
  Author-email: "Open FUN (France Université Numérique)" <fun.dev@fun-mooc.fr>
6
6
  License: MIT License
@@ -51,7 +51,7 @@ Requires-Dist: arrow
51
51
  Requires-Dist: Django<5
52
52
  Requires-Dist: djangocms-file
53
53
  Requires-Dist: djangocms-googlemap
54
- Requires-Dist: djangocms-link<5
54
+ Requires-Dist: djangocms-link<6,>=5.0.0
55
55
  Requires-Dist: djangocms-picture
56
56
  Requires-Dist: djangocms-text-ckeditor
57
57
  Requires-Dist: djangocms-video
@@ -69,7 +69,7 @@ Requires-Dist: importlib-metadata
69
69
  Requires-Dist: oauthlib==3.2.2
70
70
  Requires-Dist: requests==2.32.3
71
71
  Provides-Extra: dev
72
- Requires-Dist: bandit==1.7.10; extra == "dev"
72
+ Requires-Dist: bandit==1.8.0; extra == "dev"
73
73
  Requires-Dist: black==24.10.0; extra == "dev"
74
74
  Requires-Dist: pyRdfa3==3.6.4; extra == "dev"
75
75
  Requires-Dist: cssselect==1.2.0; extra == "dev"
@@ -97,7 +97,7 @@ Requires-Dist: dockerflow==2024.4.2; extra == "sandbox"
97
97
  Requires-Dist: factory-boy==3.3.1; extra == "sandbox"
98
98
  Requires-Dist: gunicorn==23.0.0; extra == "sandbox"
99
99
  Requires-Dist: psycopg2-binary==2.9.10; extra == "sandbox"
100
- Requires-Dist: sentry-sdk==2.18.0; extra == "sandbox"
100
+ Requires-Dist: sentry-sdk==2.19.0; extra == "sandbox"
101
101
 
102
102
  # Richie, the best OpenSource CMS to build education portals
103
103
 
@@ -1035,7 +1035,7 @@ richie/apps/courses/templatetags/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRk
1035
1035
  richie/apps/courses/templatetags/category_tags.py,sha256=cSwWFtxiubAPgx9kTdDoOe3XOoPNfYirxA4xjAQjOk0,2147
1036
1036
  richie/apps/courses/templatetags/extra_tags.py,sha256=3cHfVQke07dCuuiuunQsJdBA9U6F8swH2bjHwMds0HM,11299
1037
1037
  richie/apps/demo/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1038
- richie/apps/demo/defaults.py,sha256=jjx2C3n3OeUbb-QZVEabZXI2qdNZtpwhC4JnjgyFw8k,16134
1038
+ richie/apps/demo/defaults.py,sha256=5rNkofz-ReovOHi4nOlv97xLE3fShrjF6upFNhPfg8Q,16484
1039
1039
  richie/apps/demo/helpers.py,sha256=bg8RPWA-ZZme99pDswWHCpoPGZfWoFwe85fL7nv9FNA,2221
1040
1040
  richie/apps/demo/utils.py,sha256=P91d0Ex0COMFNEXYChVdibd5HXaAIEsqQgufml253LA,1446
1041
1041
  richie/apps/demo/fixtures/banner/banner1.jpg,sha256=I2zL-PU6I1_encvPajqW1tdYDYQ4zZSaDB1V2xuRjiw,99758
@@ -1092,7 +1092,7 @@ richie/apps/demo/fixtures/portrait/portrait-7.png,sha256=76tK5-lMED4mW8TN8JFRlOF
1092
1092
  richie/apps/demo/fixtures/portrait/portrait-8.png,sha256=BvA5je_9wioCgz56GxRIWX9XrcKQdGzCPi8xHvxF7O8,9370
1093
1093
  richie/apps/demo/management/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1094
1094
  richie/apps/demo/management/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1095
- richie/apps/demo/management/commands/create_demo_site.py,sha256=3nVwGCRhkCzj2VslwxwYvHUhu5ZfNzRkzlrN-cg1zb0,30860
1095
+ richie/apps/demo/management/commands/create_demo_site.py,sha256=WNiln1ZLrAGPSyVVteK5hxaZt9JYhQhJv7IX-bo16EY,31213
1096
1096
  richie/apps/search/__init__.py,sha256=pSGulmcMEHgv84OVt3RpNAKmw4egImIssH2Q4qebn4A,469
1097
1097
  richie/apps/search/apps.py,sha256=HA1uuHRRtW0LxBIjkcu3iSKI98fHLZwZy_2R9fqtYGQ,742
1098
1098
  richie/apps/search/cms_toolbars.py,sha256=z7n3QDSPIQks2NvmGRBWd58cbJq0lqEsBJmhK9eTKns,1272
@@ -2458,9 +2458,9 @@ richie/static/richie/js/build/99716.15b5bd6b657143458713.index.js,sha256=PKLluC8
2458
2458
  richie/static/richie/js/build/9986.15b5bd6b657143458713.index.js,sha256=YZTuD2ZqVOt-M6_gN3COhaA9URHuY6oP9IqymHl0Idc,133
2459
2459
  richie/static/richie/js/build/99953.15b5bd6b657143458713.index.js,sha256=OWoLPJnHrmvF3HBQPgXooAGo5E0yJpJ7QTFHFghJpI8,135
2460
2460
  richie/static/richie/js/build/index.js,sha256=iBeHUT7aIDdbL4E3EAisLOfhTLcoR_mD6quOyodpSXs,1367259
2461
- richie-2.32.1.dev4.dist-info/LICENSE,sha256=5LKjFIE1kpKzBfR2iwq_RGHhHM5XawdlfZrcHTsCLpA,1079
2462
- richie-2.32.1.dev4.dist-info/METADATA,sha256=dDYGtV4-q_652WdEOxHnzNNQoQv2ayqIxTLR0WkkQWg,6853
2463
- richie-2.32.1.dev4.dist-info/WHEEL,sha256=pxeNX5JdtCe58PUSYP9upmc7jdRPgvT0Gm9kb1SHlVw,109
2464
- richie-2.32.1.dev4.dist-info/top_level.txt,sha256=WJvFAAHtUQ5T5MOuG6jRynDJG9kVfl4jtuf1qxIXND8,16
2465
- richie-2.32.1.dev4.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
2466
- richie-2.32.1.dev4.dist-info/RECORD,,
2461
+ richie-2.32.1.dev6.dist-info/LICENSE,sha256=5LKjFIE1kpKzBfR2iwq_RGHhHM5XawdlfZrcHTsCLpA,1079
2462
+ richie-2.32.1.dev6.dist-info/METADATA,sha256=NxXX6zFvzOArRVghi2Pfa_mXRCkSmpuy7zeYtliFzR0,6860
2463
+ richie-2.32.1.dev6.dist-info/WHEEL,sha256=pxeNX5JdtCe58PUSYP9upmc7jdRPgvT0Gm9kb1SHlVw,109
2464
+ richie-2.32.1.dev6.dist-info/top_level.txt,sha256=WJvFAAHtUQ5T5MOuG6jRynDJG9kVfl4jtuf1qxIXND8,16
2465
+ richie-2.32.1.dev6.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
2466
+ richie-2.32.1.dev6.dist-info/RECORD,,