From: Marek Marecki Date: Thu, 8 Aug 2013 17:36:33 +0000 (+0200) Subject: Initiali work on retrieving languages list X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b7a15036150eeec777cb440f13885d7d34d8e273;p=diaspy.git Initiali work on retrieving languages list --- diff --git a/diaspy/settings.py b/diaspy/settings.py index 3f0dd60..391caf8 100644 --- a/diaspy/settings.py +++ b/diaspy/settings.py @@ -29,3 +29,16 @@ class Settings(): """ data = {'_method': 'put', 'utf-8': '✓', 'user[language]': lang, 'authenticity_token': repr(self._connection)} request = self._connection.post('user') + + def getLanguages(self): + """Returns a list of tuples containing ('Language name', 'identifier'). + One of the Black Magic(tm) methods. + """ + select_start = '