Commit graph

33 commits

Author SHA1 Message Date
sneakypete81
f536a4ef29 Merge branch 'sneakypete81-unicode_tags' into development 2014-02-02 20:55:58 +00:00
sneakypete81
ab17b26dff Merge branch 'sneakypete81-unicode_repr' into development 2014-02-02 20:53:47 +00:00
sneakypete81
566f897ace Add unicode support for the options parameter 2014-02-02 20:38:11 +00:00
sneakypete81
f05878d90f Fix repr unicode handling
Python2 requires utf-8 encoded bytestring
Python3 requires unicode string
2014-01-31 19:34:01 +00:00
sneakypete81
7e889ee3b0 Ensure uploaded filename is correct 2013-12-19 18:49:25 +00:00
sneakypete81
c4f152fcc9 Don't delete/update TroveboxObject attributes that start with an underscore 2013-11-03 12:40:24 +00:00
sneakypete81
1ba21353f9 Don't raise an exception if an object's attribute starts with an underscore,
just ignore it.
2013-11-03 12:39:53 +00:00
sneakypete81
ebaf3bc036 Remove photo dynamic_url, since this is marked as "internal" in the frontend code 2013-09-15 11:28:40 +01:00
sneakypete81
3a13d13c42 Added photo next_previous option argument.
Moved options_string slash to the start of the string.
2013-09-15 08:50:26 +01:00
sneakypete81
aeb06c0d8b Added photo view options parameter
Renamed "filter" parameters to "option"
2013-09-15 08:25:51 +01:00
sneakypete81
8a4a806f8d Fixed typo in test definition 2013-09-14 12:00:28 +01:00
sneakypete81
35b9a4d044 Add upload/replace from URL. 2013-09-12 18:26:51 +01:00
sneakypete81
c635c7c0c0 Add photo replace endpoints 2013-09-12 17:53:16 +01:00
sneakypete81
3da64a59cc Add photo.delete_source endpoint 2013-09-11 18:15:55 +01:00
sneakypete81
bf437ffc7e Don't explicitly raise a TroveboxError if False is returned,
rely on frontend to issue an error code.

This also means we don't need to test for this in unit tests.
2013-09-11 17:47:09 +01:00
sneakypete81
6b3f010920 Added photos/share endpoint (currently not implemented in frontend) 2013-09-11 17:27:21 +01:00
sneakypete81
e904a629f9 Add photo list filters 2013-09-10 18:22:31 +01:00
sneakypete81
86ba0914c8 Refactor the smarts into the api classes.
The object classes are now simple wrappers.
Improve parameter testing, by passing foo="bar" where possible.
2013-09-10 17:45:53 +01:00
sneakypete81
a4add97f59 Remove all endpoints that return forms. 2013-09-07 11:30:27 +01:00
Pete
431e8fcc8a Fix object repr functions 2013-08-29 14:23:09 -07:00
Pete
c18e590cc2 Test that all types of empty lists are retuned as [] 2013-08-26 12:09:33 -07:00
Pete
fd5389e0d7 Moved trovebox.api and trovebox.objects into packages 2013-08-19 14:05:01 +01:00
sneakypete81
6f70330994 Renamed OpenPhoto to Trovebox 2013-07-19 17:46:30 +01:00
sneakypete81
413cf297a3 Replace_encoded parameter should be called photo_file, not encoded_photo 2013-06-30 17:40:25 +01:00
sneakypete81
5656221147 After deleting an object's fields, name and id should be set to None 2013-06-30 17:39:02 +01:00
sneakypete81
9968d7f265 Delete methods should raise exception on failure, rather than returning False 2013-06-30 17:34:41 +01:00
sneakypete81
3f1757d0aa photos.update/update now also accept a list of Photo objects 2013-06-30 17:30:25 +01:00
sneakypete81
e662f32cc3 Ensure the test file is closed after use to prevent Python3 warnings 2013-06-29 20:23:31 +01:00
sneakypete81
77fef49c64 PyLint fixes 2013-06-29 18:57:12 +01:00
sneakypete81
32544878d0 Rename transform tests to be consistent 2013-06-29 10:59:11 +01:00
sneakypete81
e3e09bd224 Check that local object's fields are empty after photo is deleted 2013-06-29 10:59:11 +01:00
sneakypete81
98abec5697 Additional photo API unit tests 2013-06-16 19:39:55 +01:00
sneakypete81
c1c309bc9d Started photo API unit tests 2013-06-16 13:09:31 +01:00