comparison sat_website/views.py @ 77:13ebb548f234

use membership instead of adhesion in English (also rename the files)
author souliane <souliane@mailoo.org>
date Tue, 09 Jun 2015 14:55:09 +0200
parents d2ea666fb1dd
children 6250b65523c6
comparison
equal deleted inserted replaced
76:d2ea666fb1dd 77:13ebb548f234
46 ("press", _(u"Press")), 46 ("press", _(u"Press")),
47 ("faq", _(u"FAQ")), 47 ("faq", _(u"FAQ")),
48 ]))), 48 ]))),
49 ]) 49 ])
50 50
51 CATEGORIES_RIGHT = OrderedDict([("adhesion", _(u"Adhesion")), 51 CATEGORIES_RIGHT = OrderedDict([("membership", _(u"Membership")),
52 ("social_contract", _(u"Social contract")), 52 ("social_contract", _(u"Social contract")),
53 ]) 53 ])
54 54
55 CATEGORIES_HIDDEN = ('adhesion_form', 'thank_you') 55 CATEGORIES_HIDDEN = ('membership_form', 'thank_you')
56 56
57 PROJECTS_INFOS = {'sat': _(u'contains the backend, Primitivus and Jp'), 57 PROJECTS_INFOS = {'sat': _(u'contains the backend, Primitivus and Jp'),
58 'sat_media': _(u'Images and other media needed to launch SàT'), 58 'sat_media': _(u'Images and other media needed to launch SàT'),
59 'urwid_satext': _(u'console display library needed by Primitivus'), 59 'urwid_satext': _(u'console display library needed by Primitivus'),
60 'sat_pubsub': _(u'PubSub server component needed for SàT experimental blogging features'), 60 'sat_pubsub': _(u'PubSub server component needed for SàT experimental blogging features'),
85 context["screenshots_tech"] = screenshots.screenshots_tech 85 context["screenshots_tech"] = screenshots.screenshots_tech
86 elif category == "social_contract": 86 elif category == "social_contract":
87 context["SOCIAL_CONTRACT"] = social_contract.get_social_contract() 87 context["SOCIAL_CONTRACT"] = social_contract.get_social_contract()
88 elif category == "downloads": 88 elif category == "downloads":
89 context["projects_infos"] = utils.get_projects_infos(PROJECTS_INFOS) 89 context["projects_infos"] = utils.get_projects_infos(PROJECTS_INFOS)
90 elif category in ("association", "adhesion"): 90 elif category in ("association", "membership"):
91 context.update(utils.get_asso_urls()) 91 context.update(utils.get_asso_urls())
92 elif category == "adhesion_form": 92 elif category == "membership_form":
93 if request.method == 'POST': 93 if request.method == 'POST':
94 form = forms.RegistrationForm(request.POST) 94 form = forms.RegistrationForm(request.POST)
95 form.process_submitted_data() 95 form.process_submitted_data()
96 if form.is_valid(): 96 if form.is_valid():
97 category = 'thank_you' 97 category = 'thank_you'