Move docstring

This commit is contained in:
Markus Unterwaditzer 2014-03-26 17:57:44 +01:00
parent c7387a17f0
commit 47d3b1917d
2 changed files with 10 additions and 11 deletions

View file

@ -40,16 +40,6 @@ class DavStorage(HttpStorageBase):
_repr_attributes = ('url', 'username')
def __init__(self, **kwargs):
'''
:param url: Base URL or an URL to a collection. Autodiscovery should be
done via :py:meth:`DavStorage.discover`.
:param username: Username for authentication.
:param password: Password for authentication.
:param verify: Verify SSL certificate, default True.
:param auth: Authentication method, from {'basic', 'digest'}, default
'basic'.
:param useragent: Default 'vdirsyncer'.
'''
super(DavStorage, self).__init__(**kwargs)
headers = self._default_headers()

View file

@ -69,7 +69,16 @@ class HttpStorageBase(Storage):
def __init__(self, url, username='', password='', collection=None,
verify=True, auth=None, useragent='vdirsyncer', **kwargs):
'''
:param url: Base URL or an URL to a collection. Autodiscovery should be
done via :py:meth:`DavStorage.discover`.
:param username: Username for authentication.
:param password: Password for authentication.
:param verify: Verify SSL certificate, default True.
:param auth: Authentication method, from {'basic', 'digest'}, default
'basic'.
:param useragent: Default 'vdirsyncer'.
'''
super(HttpStorageBase, self).__init__(**kwargs)
self._settings = {