[TYPO][WIP]Radicale Odoo Storage : remove useless comment
This commit is contained in:
parent
3350d83d94
commit
0e7b2b9ae1
@ -136,19 +136,7 @@ class Collection(BaseCollection):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def discover(cls, path, depth="0"):
|
def discover(cls, path, depth="0"):
|
||||||
"""Discover a list of collections under the given ``path``.
|
"""Discover implementation """
|
||||||
|
|
||||||
``path`` is sanitized.
|
|
||||||
|
|
||||||
If ``depth`` is "0", only the actual object under ``path`` is
|
|
||||||
returned.
|
|
||||||
|
|
||||||
If ``depth`` is anything but "0", it is considered as "1" and direct
|
|
||||||
children are included in the result.
|
|
||||||
|
|
||||||
The root collection "/" must always exist.
|
|
||||||
|
|
||||||
"""
|
|
||||||
attributes = path.strip('/').split('/') or []
|
attributes = path.strip('/').split('/') or []
|
||||||
if path and not cls.user:
|
if path and not cls.user:
|
||||||
cls.user = attributes[0]
|
cls.user = attributes[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user