From: Marek Marecki Date: Thu, 22 Aug 2013 14:12:59 +0000 (+0200) Subject: diaspy can set interface language X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=52c871a4474e084648fdfe7b03a888ce28aa7bbf;p=diaspy.git diaspy can set interface language --- diff --git a/diaspy/settings.py b/diaspy/settings.py index 5ee46fa..bbb6ffe 100644 --- a/diaspy/settings.py +++ b/diaspy/settings.py @@ -38,9 +38,11 @@ class Settings(): def setLanguage(self, lang): """Changes user's email. + + :param lang: language identifier from getLanguages() """ data = {'_method': 'put', 'utf-8': '✓', 'user[language]': lang, 'authenticity_token': repr(self._connection)} - request = self._connection.post('user') + request = self._connection.post('user', data=data) def getLanguages(self): """Returns a list of tuples containing ('Language name', 'identifier').