Remove all endpoints that return forms.
This commit is contained in:
parent
adecf7aad0
commit
a4add97f59
8 changed files with 0 additions and 90 deletions
|
@ -35,10 +35,6 @@ class Album(TroveboxObject):
|
|||
self._delete_fields()
|
||||
return result
|
||||
|
||||
def form(self, **kwds):
|
||||
""" Not implemented yet """
|
||||
raise NotImplementedError()
|
||||
|
||||
# TODO: Should be just "add"
|
||||
def add_photos(self, photos, **kwds):
|
||||
""" Not implemented yet """
|
||||
|
|
|
@ -23,16 +23,6 @@ class Photo(TroveboxObject):
|
|||
|
||||
# def delete_source(self, **kwds):
|
||||
|
||||
def edit(self, **kwds):
|
||||
"""
|
||||
Endpoint: /photo/<id>/edit.json
|
||||
|
||||
Returns an HTML form to edit this photo's attributes.
|
||||
"""
|
||||
result = self._trovebox.get("/photo/%s/edit.json" %
|
||||
self.id, **kwds)["result"]
|
||||
return result["markup"]
|
||||
|
||||
def replace(self, photo_file, **kwds):
|
||||
""" Not implemented yet """
|
||||
raise NotImplementedError()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue