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

Toekomstig lidmaatschap #471

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

aykevl
Copy link
Contributor

@aykevl aykevl commented Jul 26, 2017

Helaas nog niet alles getest: ik kan giedo niet werkend krijgen op mijn Vagrant box dus ik kan geen virtuele relaties testen.
Maar toekomstig lidmaatschap werkt goed bij mij.

aykevl added 4 commits July 26, 2017 20:57
…rships

To make that easier, move the age grouping of relations from the
template to the view.
That means they won't get any mail, so to avoid this if it isn't
expected mark this in the UI.
# Only having a special relation means that the user won't get any email
# which may be unintended, so warn about this situation in the UI.
rrelated_regular_members = {r['who'] for r in rrelated
if r['how'] is None and Es.relation_is_active(r)}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

flake8 klaagt hierover, maar ik weet geen mooie oplossing - hoe zou ik dit beter kunnen opschrijven?

./kn/leden/views.py:135:80: E501 line too long (81 > 79 characters)

Copy link
Member

Choose a reason for hiding this comment

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

if not r['how']

@aykevl aykevl requested a review from bwesterb July 28, 2017 12:32
Es.entity_humanName(x['with']),
Es.entity_humanName(x['how'])))
rrelated = sorted(e.get_rrelated(),
key=lambda x: (Es.DT_MIN - Es.relation_until(x),
key=lambda x: (Es.relation_in_future(x),
Copy link
Member

Choose a reason for hiding this comment

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

Waarom hier Es.relation_in_future maar bij related met een not ervoor?

if r['how'] is None and Es.relation_is_active(r)}
for r in rrelated:
if r['who'] not in rrelated_regular_members:
r['no_regular'] = True
Copy link
Member

Choose a reason for hiding this comment

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

Dus dit vlaggetje wordt ook gezet bij relaties in het verleden, waar toen die persoon wel normaal lid geweest heeft kunnen zijn?

@bwesterb
Copy link
Member

Het moet wel getest worden.

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