Comment fixes: "an Trovebox" -> "a Trovebox"
This commit is contained in:
parent
fd5389e0d7
commit
06362721f0
8 changed files with 8 additions and 8 deletions
|
@ -28,7 +28,7 @@ class ApiAlbum(object):
|
|||
"""
|
||||
Delete an album.
|
||||
Returns True if successful.
|
||||
Raises an TroveboxError if not.
|
||||
Raises a TroveboxError if not.
|
||||
"""
|
||||
if not isinstance(album, Album):
|
||||
album = Album(self._client, {"id": album})
|
||||
|
|
|
@ -64,7 +64,7 @@ class ApiPhoto(object):
|
|||
"""
|
||||
Delete a photo.
|
||||
Returns True if successful.
|
||||
Raises an TroveboxError if not.
|
||||
Raises a TroveboxError if not.
|
||||
"""
|
||||
if not isinstance(photo, Photo):
|
||||
photo = Photo(self._client, {"id": photo})
|
||||
|
|
|
@ -29,7 +29,7 @@ class ApiTag(object):
|
|||
"""
|
||||
Delete a tag.
|
||||
Returns True if successful.
|
||||
Raises an TroveboxError if not.
|
||||
Raises a TroveboxError if not.
|
||||
"""
|
||||
if not isinstance(tag, Tag):
|
||||
tag = Tag(self._client, {"id": tag})
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
errors.py : Trovebox Error Classes
|
||||
"""
|
||||
class TroveboxError(Exception):
|
||||
""" Indicates that an Trovebox operation failed """
|
||||
""" Indicates that a Trovebox operation failed """
|
||||
pass
|
||||
|
||||
class TroveboxDuplicateError(TroveboxError):
|
||||
|
|
|
@ -25,7 +25,7 @@ DUPLICATE_RESPONSE = {"code": 409,
|
|||
|
||||
class Http(object):
|
||||
"""
|
||||
Base class to handle HTTP requests to an Trovebox server.
|
||||
Base class to handle HTTP requests to a Trovebox server.
|
||||
If no parameters are specified, auth config is loaded from the
|
||||
default location (~/.config/trovebox/default).
|
||||
The config_file parameter is used to specify an alternate config file.
|
||||
|
|
|
@ -28,7 +28,7 @@ class Album(TroveboxObject):
|
|||
"""
|
||||
Delete this album.
|
||||
Returns True if successful.
|
||||
Raises an TroveboxError if not.
|
||||
Raises a TroveboxError if not.
|
||||
"""
|
||||
result = self._trovebox.post("/album/%s/delete.json" %
|
||||
self.id, **kwds)["result"]
|
||||
|
|
|
@ -10,7 +10,7 @@ class Photo(TroveboxObject):
|
|||
"""
|
||||
Delete this photo.
|
||||
Returns True if successful.
|
||||
Raises an TroveboxError if not.
|
||||
Raises a TroveboxError if not.
|
||||
"""
|
||||
result = self._trovebox.post("/photo/%s/delete.json" %
|
||||
self.id, **kwds)["result"]
|
||||
|
|
|
@ -15,7 +15,7 @@ class Tag(TroveboxObject):
|
|||
"""
|
||||
Delete this tag.
|
||||
Returns True if successful.
|
||||
Raises an TroveboxError if not.
|
||||
Raises a TroveboxError if not.
|
||||
"""
|
||||
result = self._trovebox.post("/tag/%s/delete.json" %
|
||||
quote(self.id), **kwds)["result"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue