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