Граф коммитов

241 Коммитов

Автор SHA1 Сообщение Дата
Carl Meyer beba672b9b Merge branch 'no-iterate-none' into mozilla 2011-12-02 23:37:10 -07:00
Carl Meyer 958273a049 Added tests for iterating-None in in List/Dict decode; removed mutable function defaults. 2011-12-02 23:36:04 -07:00
Carl Meyer 622b9848fc Merge branch 'master' into no-iterate-none 2011-12-02 23:13:14 -07:00
Carl Meyer aaac0c1be5 Bump moz version number. 2011-12-02 23:08:16 -07:00
Carl Meyer ead3132d5c Merge branch 'link-accepts-string-cls' into mozilla 2011-12-02 23:07:39 -07:00
Carl Meyer c73fe10fb4 Merge branch 'failing-encoding-test' into mozilla 2011-12-02 23:07:34 -07:00
Carl Meyer 6c6ff71a30 Merge branch 'no-content-response' into mozilla 2011-12-02 23:07:07 -07:00
Carl Meyer dbfbc257be Merge branch 'master' into link-accepts-string-cls 2011-12-02 22:57:11 -07:00
Carl Meyer cd0b893608 Added test for correctly handling no-content success response. 2011-12-02 22:56:10 -07:00
Carl Meyer 6a1fdad986 Merge branch 'master' into no-content-response 2011-12-02 20:15:39 -07:00
Carl Meyer 18c8765552 Merge branch 'master' into failing-encoding-test 2011-12-02 20:12:26 -07:00
Martin Atkins d9dca10ae4 Merge pull request #8 from carljm/promise-kwargs
Make PromiseObject.get() store and pass on kwargs
2011-11-30 09:39:34 -08:00
Martin Atkins 6526128e03 Don't try to encode Nones.
Some of the field types don't work if their value is None.
2011-11-01 10:57:29 -07:00
Martin Atkins d1c71f8ffb Test added in cdc40aa didn't actually test for the right case.
api_data is only populated when from_dict is used, so we need to
proactively populate it in order to correctly test the behavior of
assigning over a field that is set in the api_data dict.
2011-11-01 10:41:12 -07:00
Martin Atkins cdc40aaa8a Fix issue that prevented fields from being unset.
Since it only did the update when value is not None, it was impossible to
override a value already in the api_data dict with an explicit None.

Now the Nones will overwrite what was in api_data and we'll clean up any
explicit Nones that are left in the dict after the fact, preserving the
previous behavior that we never explicitly send a JSON null, instead
preferring to just omit null properties.
2011-11-01 10:37:57 -07:00
Carl Meyer 4896c08ad1 Bump version. 2011-04-24 08:38:21 -05:00
Carl Meyer 6f21bae11b Merge branch 'no-content-response' into mozillatcm 2011-04-24 08:37:56 -05:00
Carl Meyer 06432e8e94 Don't try to update from a response that has no content. 2011-04-24 08:37:40 -05:00
Carl Meyer 9c25377a03 Merge branch 'master' into mozillatcm 2011-04-24 08:10:45 -05:00
Ross McFarland 73c5b8f5a0 provide a simple UTC tz for working with dates 2011-04-19 09:57:42 -07:00
Chris Adams afb3830f2c dataobject: fixed broken import in docstring 2011-03-31 03:44:54 +08:00
Ross McFarland 9364df545e correct tzinfo comment per mart's cr comment. 2011-02-09 13:52:22 -08:00
Ross McFarland aaceb274d1 handle encode of Datetime's with tzinfo's 2011-02-08 14:00:24 -08:00
Ross McFarland 0f29db3ba9 handle UTC timezone's in encode 2011-02-08 13:49:17 -08:00
Ross McFarland 95f96ee933 simple utc class and use of it in remote objects 2011-02-08 13:17:27 -08:00
Carl Meyer bb6298cb7b Bumped version. 2011-01-27 23:54:12 -05:00
Carl Meyer 95d6bab0af Merge branch 'link-accepts-string-cls' into mozillatcm 2011-01-27 23:53:47 -05:00
Carl Meyer e2a6a7f057 Extended string forwards-reference support to Link as well as Object. 2011-01-27 23:32:01 -05:00
Carl Meyer ddb20c0125 Added failing test for Link forwards-reference support. 2011-01-27 23:31:31 -05:00
Carl Meyer 3f6a9cbd3a Merge branch 'failing-encoding-test' into mozillatcm 2011-01-27 23:16:20 -05:00
Carl Meyer 8edee3c594 Merge branch 'promise-kwargs' into mozillatcm 2011-01-27 23:16:14 -05:00
Carl Meyer 3f757be050 Added test check for .get() passing on kwargs to .get_request(). 2011-01-27 23:16:00 -05:00
Carl Meyer 32cad65feb Fixed failing get_bad_encoding test. 2011-01-27 22:51:34 -05:00
Carl Meyer 5026575714 Bump version. 2011-01-22 23:20:22 -05:00
Carl Meyer 3b681ea5b8 PromiseObject.get() passes on kwargs to get_request() on delivery. 2011-01-22 23:13:10 -05:00
Christian Legnitto 15cf6ac14e Match the code style of other type defaults 2010-12-01 22:44:04 -08:00
Christian Legnitto ccc0fef60e Check for None. Without this check List items can throw "TypeError: 'NoneType' object is not iterable
". While I was there I saw Dict suffered from a similar issue and fixed it there.
2010-12-01 18:34:03 -08:00
Brad Choate d306b53393 Assign SequenceProxy class ahead of PromiseObject for PageObject so we prefer to iterate over the "entries" member. 2010-10-25 18:52:04 -07:00
Brad Choate 9b8a0cb8b2 Allow dataobject to be iterable and adding a get method. 2010-10-25 14:00:20 -07:00
Brad Choate 32a9c37f01 Merge branch 'master' of github.com:sixapart/remoteobjects 2010-07-08 14:13:21 -07:00
Brad Choate d6aebd7b33 Assigning release date. 2010-07-08 09:54:01 -07:00
Mark Paschal 8cd9a330bf Accepted responses don't really have content 2010-06-15 14:21:59 -07:00
Mark Paschal 653f3dc903 Expect 202 Accepted responses sometimes 2010-06-14 17:52:39 -07:00
Mark Paschal ddfaa6219f Nice up these configurations 2010-06-14 16:49:56 -07:00
Mark Paschal 2d2674ad35 Honor location_header_required when filling the _location from the response too 2010-06-14 13:19:43 -07:00
Mark Paschal c477fc6818 Honor a Content-Location header given in a 200 OK response 2010-05-21 16:54:20 -07:00
Brad Choate 95b43c171a Updates for v1.1.1, including changelog and copyrights. 2010-05-21 11:52:43 -07:00
Mark Paschal bc5add1b14 Add tests to cover Alex Gaynor's patch about empty Datetime fields (thanks, Alex!) 2010-02-11 12:04:30 -08:00
Alex Gaynor dc3f868460 Allow None values on Datetime 2010-02-12 03:50:00 +08:00
Brad Choate cba5699dbd Release metadata; added changelog. 2009-11-23 14:46:11 -08:00