From 52c871a4474e084648fdfe7b03a888ce28aa7bbf Mon Sep 17 00:00:00 2001 From: Marek Marecki Date: Thu, 22 Aug 2013 16:12:59 +0200 Subject: [PATCH] diaspy can set interface language --- diaspy/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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'). -- 2.25.1