From b7a15036150eeec777cb440f13885d7d34d8e273 Mon Sep 17 00:00:00 2001 From: Marek Marecki Date: Thu, 8 Aug 2013 19:36:33 +0200 Subject: [PATCH] Initiali work on retrieving languages list --- diaspy/settings.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 = '