mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Move docstring
This commit is contained in:
parent
c7387a17f0
commit
47d3b1917d
2 changed files with 10 additions and 11 deletions
|
|
@ -40,16 +40,6 @@ class DavStorage(HttpStorageBase):
|
||||||
_repr_attributes = ('url', 'username')
|
_repr_attributes = ('url', 'username')
|
||||||
|
|
||||||
def __init__(self, **kwargs):
|
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)
|
super(DavStorage, self).__init__(**kwargs)
|
||||||
|
|
||||||
headers = self._default_headers()
|
headers = self._default_headers()
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,16 @@ class HttpStorageBase(Storage):
|
||||||
|
|
||||||
def __init__(self, url, username='', password='', collection=None,
|
def __init__(self, url, username='', password='', collection=None,
|
||||||
verify=True, auth=None, useragent='vdirsyncer', **kwargs):
|
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)
|
super(HttpStorageBase, self).__init__(**kwargs)
|
||||||
|
|
||||||
self._settings = {
|
self._settings = {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue