Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synchronise content between locales using alias pages #191

Merged
merged 2 commits into from Nov 9, 2020

Conversation

kaedroho
Copy link
Contributor

@kaedroho kaedroho commented Sep 9, 2020

The PR:

  • pulls in Locale components from Locale components wagtail#6398 which allows us to register models that add addition attributes to locale components
  • Adds a locale component called LocaleSynchronisation, this allows users to define locales that should be kept in sync with another locale
  • Adds synctree.py which adds signal handlers for synchronising pages to different locale trees using alias pages before they are translated

@kaedroho kaedroho force-pushed the alias-pages-integration branch 2 times, most recently from 81bf8fc to 94bb5e4 Compare October 8, 2020 09:46
@kaedroho kaedroho changed the title Initial work on synchronised trees Synchronise content between locales using alias pages Nov 4, 2020
@kaedroho kaedroho marked this pull request as ready for review November 4, 2020 20:39
This was referenced Nov 9, 2020
@@ -500,6 +502,10 @@ def create_or_update_translation(self, locale, user=None, publish=True, copy_par
ingest_segments(original, translation, self.locale, locale, segments)

if isinstance(translation, Page):
# Convert the page into a regular page
# TODO: Audit logging, etc
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Audit logging. Non blocking imo but probably important to have at some point.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! taken note and will implement soon

@kaedroho kaedroho merged commit bc2f253 into master Nov 9, 2020
@kaedroho kaedroho deleted the alias-pages-integration branch November 9, 2020 20:04
@kaedroho kaedroho mentioned this pull request Nov 9, 2020
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants