lp:~robru/gwibber/foursquare-fixup
- Get this branch:
- bzr branch lp:~robru/gwibber/foursquare-fixup
Branch merges
- Barry Warsaw: Pending requested
-
Diff: 15 lines (+2/-2)1 file modifiedgwibber/gwibber/protocols/foursquare.py (+2/-2)
Branch information
Recent revisions
- 1438. By Barry Warsaw
-
Merge, with minor changes, lp:~robru/gwibber/accounts-fixup, which principly
cleans up the interface with libaccounts, and changes blanket attribute access
via dictionary lookup to specific direct. attribute accesses.Also:
* Make Account.enabled a property.
* Add more explanation about why the gi.repository.Account API sucks. - 1437. By Barry Warsaw
-
Rework several aspects of the testing infrastructure to give us several
improvements:* We no longer pollute the user's gwibber.log file with test output.
* We can assert log output even in sub-thread operations.
* We can synchronize the main thread (i.e. the test runner) with the
sub-thread operations, to avoid race conditions in outcome assertions.Details:
* AuthorizationError gets a nice str()
* Temporarily (until the rest of the flickr.py protocol is ported to Dee), add
an alias for 'images' called 'received'.
* Don't try to translate log messages.
* Eliminate the LogPreserver helper; it's much better to mock the protocol
module's 'log' attribute. This is done through the use of the new LogMock
class.
* Move SettingsIterMock to gwibber.testing. mocks.
* The new LogMock class uses a QueueHandler to capture all log messages, even
those that happen in a protocol operation sub-thread.
* Adapt existing tests to use LogMock.
* Add a synchronization flag which can be mocked to True to enable main
thread/operations thread synchronization through a Barrier. Also, add a
Thread subclass which catches any exceptions in the sub-thread, logs, and
swallows it. To enable synchronization, set Base._SYNCHRONIZE to True. - 1435. By Barry Warsaw
-
Merge lp:~robru/gwibber/foursquare, which implements the FourSquare protocol.
This branch also simplified the Dee model to remove unnecessary columns
'transient' and 'timestring'. Also removed is the 'service' argument to
Base._publish() since this is now introspected from the class name
implementing the protocol.Additional changes by barry include providing a utility to convert from epoch
timestamp + utc_offset to iso 8601 utc time strings, plus the usual random
pissing on the hydrant clean ups. - 1432. By Barry Warsaw
-
Full support for RFC 4627 application/json implicit charset encodings. See $3
of the RFC for details.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:gwibber