-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #133 from plone/pf-renewal-cycle
Pf renewal cycle
- Loading branch information
Showing
14 changed files
with
294 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
20 changes: 20 additions & 0 deletions
20
backend/src/ploneorg/src/ploneorg/interpolators/configure.zcml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<configure | ||
xmlns="http://namespaces.zope.org/zope" | ||
xmlns:browser="http://namespaces.zope.org/browser" | ||
> | ||
|
||
<adapter | ||
factory=".member.EmailSubstitution" | ||
provides="plone.stringinterp.interfaces.IStringSubstitution" | ||
for="ploneorg.content.member.IFoundationMember" | ||
name="pf_member_email" | ||
/> | ||
|
||
<adapter | ||
factory=".member.RenewURLSubstitution" | ||
provides="plone.stringinterp.interfaces.IStringSubstitution" | ||
for="ploneorg.content.member.IFoundationMember" | ||
name="pf_renew_url" | ||
/> | ||
|
||
</configure> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
from plone.stringinterp.adapters import BaseSubstitution | ||
from ploneorg import _ | ||
from ploneorg.content.member import IFoundationMember | ||
from zope.component import adapter | ||
|
||
|
||
@adapter(IFoundationMember) | ||
class EmailSubstitution(BaseSubstitution): | ||
category = _("Foundation Member") | ||
description = _("Member E-mail") | ||
|
||
def safe_call(self): | ||
name = self.context.title | ||
email = self.context.email | ||
if name and email: | ||
return f"{name}<{email}>" | ||
|
||
|
||
@adapter(IFoundationMember) | ||
class RenewURLSubstitution(BaseSubstitution): | ||
category = _("Foundation Member") | ||
description = _("Renew URL") | ||
|
||
def safe_call(self): | ||
url = self.context.absolute_url() | ||
return f"{url}?mtm_campaign=PFM&mtm_kwd=Renew" |
62 changes: 62 additions & 0 deletions
62
backend/src/ploneorg/src/ploneorg/profiles/default/contentrules.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<contentrules> | ||
<rule cascading="False" | ||
description="Move a foundation member to renew state" | ||
enabled="True" | ||
event="Products.CMFCore.interfaces.IActionSucceededEvent" | ||
name="rule-pf-renew" | ||
stop-after="False" | ||
title="Foundation Member Renew" | ||
> | ||
<conditions> | ||
<condition type="plone.conditions.PortalType"> | ||
<property name="check_types"> | ||
<element>FoundationMember</element> | ||
</property> | ||
</condition> | ||
<condition type="plone.conditions.WorkflowTransition"> | ||
<property name="wf_transitions"> | ||
<element>suspend</element> | ||
</property> | ||
</condition> | ||
</conditions> | ||
<actions> | ||
<action type="plone.actions.Mail"> | ||
<property name="subject">Reminder: Time to Renew Your Plone Foundation Membership</property> | ||
<property name="source">Plone Foundation<[email protected]></property> | ||
<property name="recipients">${pf_member_email}</property> | ||
<property name="exclude_actor">True</property> | ||
<property name="message">Dear ${title}, | ||
|
||
As we approach another exciting year for the Plone Foundation, it's time to renew your membership to maintain your active status and continue enjoying the benefits that come with it. As an active member, you have the privilege to: | ||
|
||
1. Vote for the Plone Foundation Board of Directors | ||
2. Participate in selecting the location for the next Plone Conference | ||
3. Approve the minutes of the annual meeting | ||
4. Exercise all other rights and privileges granted to Plone Foundation members | ||
|
||
How to Renew Your Membership | ||
|
||
1. Log in to your account at https://plone.org/login using your GitHub credentials. | ||
2. Navigate to ${pf_renew_url} and click on the Renew Membership button. | ||
|
||
If you no longer wish to maintain an active membership, you may choose to retire it by clicking on the Retire Membership button. | ||
|
||
Need Assistance? | ||
|
||
Should you encounter any issues or have questions regarding the renewal process, please don't hesitate to reach out to us at [email protected]. We are here to assist you. | ||
|
||
We look forward to another year of collaboration and growth with you as part of the Plone Foundation. | ||
|
||
Best regards, | ||
Plone Foundation Board | ||
[email protected]</property> | ||
</action> | ||
</actions> | ||
</rule> | ||
<assignment bubbles="True" | ||
enabled="True" | ||
location="/foundation/members" | ||
name="rule-pf-renew" | ||
/> | ||
</contentrules> |
2 changes: 1 addition & 1 deletion
2
backend/src/ploneorg/src/ploneorg/profiles/default/metadata.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.