0
|
1 #!/usr/bin/python |
|
2 # -*- coding: utf-8 -*- |
|
3 """ |
|
4 SàT website: Salut à Toi's presentation website |
|
5 Copyright (C) 2012 Jérôme Poisson (goffi@goffi.org) |
|
6 |
|
7 This file is part of SàT website. |
|
8 |
|
9 SàT website is free software: you can redistribute it and/or modify |
|
10 it under the terms of the GNU Affero General Public License as published by |
|
11 the Free Software Foundation, either version 3 of the License, or |
|
12 (at your option) any later version. |
|
13 |
|
14 Foobar is distributed in the hope that it will be useful, |
|
15 but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
17 GNU Affero General Public License for more details. |
|
18 |
|
19 You should have received a copy of the GNU Affero General Public License |
|
20 along with Foobar. If not, see <http://www.gnu.org/licenses/>. |
|
21 """ |
|
22 |
|
23 from os.path import join, dirname |
|
24 |
|
25 def get_social_contract(language_code="fr"): |
|
26 """Return the localised social contract version""" |
|
27 path = join(dirname(__file__), "CONTRAT_SOCIAL") |
|
28 with open(path) as f: |
|
29 text = f.read() |
|
30 return text |
|
31 |