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

Migrate to new module interface #4

Merged
merged 11 commits into from
Aug 4, 2021
Merged

Migrate to new module interface #4

merged 11 commits into from
Aug 4, 2021

Conversation

babolivier
Copy link
Contributor

Split out of #3

@babolivier babolivier requested a review from a team July 19, 2021 14:02
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

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

looks good, a few nits though

email_account_validity/account_validity.py Outdated Show resolved Hide resolved
email_account_validity/_servlets.py Show resolved Hide resolved
email_account_validity/_base.py Outdated Show resolved Hide resolved
email_account_validity/account_validity.py Outdated Show resolved Hide resolved
email_account_validity/account_validity.py Show resolved Hide resolved
@babolivier babolivier requested a review from richvdh August 3, 2021 13:32
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

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

lgtm other than frozen

email_account_validity/_config.py Outdated Show resolved Hide resolved
email_account_validity/_config.py Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
email_account_validity/_config.py Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@babolivier babolivier merged commit c1ed5b3 into main Aug 4, 2021
@babolivier babolivier deleted the babolivier/new_api branch August 4, 2021 09:12
You can find and change the default templates [here](https://github.com/matrix-org/synapse-email-account-validity/tree/main/email_account_validity/templates).
Admins can install custom templates either by changing the default ones directly, or by
configuring Synapse with a custom template directory that contains the custom templates.
Admins that don't need to customise their templates can just use the module as is and ignore this paragraph.
Copy link
Member

Choose a reason for hiding this comment

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

ok, how does this work?

it looks like we call module_api.read_templates (with no custom template dir), which calls config._base.read_templates, which just looks in synapse/res/templates. How does it find templates in email_account_validity/templates?

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.

2 participants