Mercurial > sat_legacy_website
diff sat_website/utils.py @ 40:dfe7139dae0a
add links to the statutes and rules of the association in the adhesion form
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 03 Feb 2015 15:14:42 +0100 |
parents | d2c45f4ba57e |
children | 1a0f24401866 |
line wrap: on
line diff
--- a/sat_website/utils.py Tue Jan 27 18:23:39 2015 +0100 +++ b/sat_website/utils.py Tue Feb 03 15:14:42 2015 +0100 @@ -49,11 +49,17 @@ return result def get_libervia_demo_url(): - """Return the URL to Libervia online demo""" + """Returns the URL to Libervia online demo.""" return settings.LIBERVIA_DEMO_URL +def get_asso_urls(): + """Returns URLs related to the association""" + return {'asso_url_statutes': settings.ASSO_URL_STATUTES, + 'asso_url_rules': settings.ASSO_URL_RULES + } + def get_asso_finance_status(): - """Returns information about the financement of the association""" + """Returns information about the financing of the association.""" def get_items(actual, target, prefix): actual = int(actual) target = int(target) @@ -70,4 +76,5 @@ return items def get_asso_subscr_amounts(): + """Returns the subscription amounts as defined in the Rules of the association.""" return settings.ASSO_SUBSCR_AMOUNTS