lp:~robru/gwibber/get_tokens
- Get this branch:
- bzr branch lp:~robru/gwibber/get_tokens
Branch merges
- Barry Warsaw: Pending requested
-
Diff: 39 lines (+10/-8)2 files modifiedgwibber/gwibber/protocols/foursquare.py (+0/-8)
gwibber/gwibber/utils/base.py (+10/-0)
Branch information
Recent revisions
- 1442. By Robert Bruce Park
-
Promote FourSquare.
_get_access_ token to Base._get_ access_ token. It's generic enough for other protocols to benefit, too.
- 1440. By Barry Warsaw
-
Merge lp:~robru/gwibber/publish-fixup-real which now gets the account id for
_publish() from self instead of passing it in as an argument. - 1439. By Barry Warsaw
-
Port the flickr.py module to the new _publish() regime, i.e. Dee model.
* Rename Flickr.images() -> Flickr.receive()
* Ensure that the testing log mocker also uses {} style.
* Remove gwibber/utils/results. py and the tests; with _publish() we don't need
this any more. - 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.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:gwibber