Skip to content

Commit b5b4d01

Browse files
author
rob
committed
Updated spec
1 parent 825c758 commit b5b4d01

20 files changed

+32566
-15042
lines changed

dropbox/async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
try:
77
from . import stone_validators as bv
88
from . import stone_base as bb
9-
except (SystemError, ValueError):
9+
except (ImportError, SystemError, ValueError):
1010
# Catch errors raised when importing a relative module when not in a package.
1111
# This makes testing this file directly (outside of a package) easier.
1212
import stone_validators as bv

dropbox/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
try:
77
from . import stone_validators as bv
88
from . import stone_base as bb
9-
except (SystemError, ValueError):
9+
except (ImportError, SystemError, ValueError):
1010
# Catch errors raised when importing a relative module when not in a package.
1111
# This makes testing this file directly (outside of a package) easier.
1212
import stone_validators as bv

dropbox/base.py

Lines changed: 300 additions & 248 deletions
Large diffs are not rendered by default.

dropbox/base_team.py

Lines changed: 108 additions & 108 deletions
Large diffs are not rendered by default.

dropbox/common.py

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
try:
77
from . import stone_validators as bv
88
from . import stone_base as bb
9-
except (SystemError, ValueError):
9+
except (ImportError, SystemError, ValueError):
1010
# Catch errors raised when importing a relative module when not in a package.
1111
# This makes testing this file directly (outside of a package) easier.
1212
import stone_validators as bv
@@ -196,10 +196,11 @@ class RootInfo(object):
196196
"""
197197
Information about current user's root.
198198
199-
:ivar root_namespace_id: The namespace id for user's root namespace. It will
200-
be the namespace id of the shared team root if the user is member of a
201-
CDM team. Otherwise it will be same as ``RootInfo.home_namespace_id``.
202-
:ivar home_namespace_id: The namespace id for user's home namespace.
199+
:ivar root_namespace_id: The namespace ID for user's root namespace. It will
200+
be the namespace ID of the shared team root if the user is member of a
201+
team with a separate team root. Otherwise it will be same as
202+
``RootInfo.home_namespace_id``.
203+
:ivar home_namespace_id: The namespace ID for user's home namespace.
203204
"""
204205

205206
__slots__ = [
@@ -226,9 +227,9 @@ def __init__(self,
226227
@property
227228
def root_namespace_id(self):
228229
"""
229-
The namespace id for user's root namespace. It will be the namespace id
230-
of the shared team root if the user is member of a CDM team. Otherwise
231-
it will be same as ``RootInfo.home_namespace_id``.
230+
The namespace ID for user's root namespace. It will be the namespace ID
231+
of the shared team root if the user is member of a team with a separate
232+
team root. Otherwise it will be same as ``RootInfo.home_namespace_id``.
232233
233234
:rtype: str
234235
"""
@@ -251,7 +252,7 @@ def root_namespace_id(self):
251252
@property
252253
def home_namespace_id(self):
253254
"""
254-
The namespace id for user's home namespace.
255+
The namespace ID for user's home namespace.
255256
256257
:rtype: str
257258
"""
@@ -281,7 +282,7 @@ def __repr__(self):
281282

282283
class TeamRootInfo(RootInfo):
283284
"""
284-
Root info when user is member of a CDM team.
285+
Root info when user is member of a team with a separate root namespace ID.
285286
286287
:ivar home_path: The path for user's home directory under the shared team
287288
root.
@@ -339,7 +340,8 @@ def __repr__(self):
339340

340341
class UserRootInfo(RootInfo):
341342
"""
342-
Root info when user is not member of a CDM team.
343+
Root info when user is not member of a team or the user is a member of a
344+
team and the team does not have a separate root namespace.
343345
"""
344346

345347
__slots__ = [

dropbox/file_properties.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
try:
2727
from . import stone_validators as bv
2828
from . import stone_base as bb
29-
except (SystemError, ValueError):
29+
except (ImportError, SystemError, ValueError):
3030
# Catch errors raised when importing a relative module when not in a package.
3131
# This makes testing this file directly (outside of a package) easier.
3232
import stone_validators as bv

dropbox/file_requests.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
try:
1111
from . import stone_validators as bv
1212
from . import stone_base as bb
13-
except (SystemError, ValueError):
13+
except (ImportError, SystemError, ValueError):
1414
# Catch errors raised when importing a relative module when not in a package.
1515
# This makes testing this file directly (outside of a package) easier.
1616
import stone_validators as bv
@@ -21,7 +21,7 @@
2121
common,
2222
files,
2323
)
24-
except (SystemError, ValueError):
24+
except (ImportError, SystemError, ValueError):
2525
import common
2626
import files
2727

@@ -649,7 +649,7 @@ class FileRequestDeadline(object):
649649
"""
650650
:ivar deadline: The deadline for this file request.
651651
:ivar allow_late_uploads: If set, allow uploads after the deadline has
652-
passed. These uploads will be marked overdue.
652+
passed. These uploads will be marked overdue.
653653
"""
654654

655655
__slots__ = [
@@ -699,8 +699,8 @@ def deadline(self):
699699
@property
700700
def allow_late_uploads(self):
701701
"""
702-
If set, allow uploads after the deadline has passed. These uploads will
703-
be marked overdue.
702+
If set, allow uploads after the deadline has passed. These uploads
703+
will be marked overdue.
704704
705705
:rtype: GracePeriod
706706
"""

0 commit comments

Comments
 (0)