From: Marek Marecki Date: Thu, 27 Jun 2013 06:08:43 +0000 (+0200) Subject: Started development of diaspy/settings.py X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=fb680551ae25f637c1f0e8695b2b39a6259196ce;p=diaspy.git Started development of diaspy/settings.py --- diff --git a/diaspy/__init__.py b/diaspy/__init__.py index 172431a..1050ee8 100644 --- a/diaspy/__init__.py +++ b/diaspy/__init__.py @@ -4,3 +4,4 @@ import diaspy.streams as streams import diaspy.client as client import diaspy.people as people import diaspy.notifications as notifications +import diaspy.settings as settings diff --git a/diaspy/settings.py b/diaspy/settings.py new file mode 100644 index 0000000..a63a801 --- /dev/null +++ b/diaspy/settings.py @@ -0,0 +1,20 @@ +import json +import re +import urllib + + +"""This module provides access to user's settings on Diaspora*. +""" + + +class Settings(): + """This object is used to get access to user's settings on + Diaspora* and provides interface for downloading user's stuff. + """ + def __init__(self, connection): + self._connection = connection + + def downloadxml(self): + request = self._connection.get('user/export') + return request.text +