lp:~robru/gwibber/foursquare-fixup

Created by Robert Bruce Park and last modified
Get this branch:
bzr branch lp:~robru/gwibber/foursquare-fixup
Only Robert Bruce Park can upload to this branch. If you are Robert Bruce Park please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Robert Bruce Park
Project:
Gwibber
Status:
Merged

Recent revisions

1439. By Robert Bruce Park

Make foursquare a little more robust against invalid api responses.

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.

1436. By Barry Warsaw

foursquare plugin is ported.

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.

1434. By Barry Warsaw

Nuke protocol 'info'; we don't need it any more.

1433. By Barry Warsaw

Merge lp:~robru/gwibber/dee with changes by barry.

1432. By Barry Warsaw

Full support for RFC 4627 application/json implicit charset encodings. See $3
of the RFC for details.

1431. By Barry Warsaw

Remove obsolete module. One more nail in the coffin for microblog/

1430. By Barry Warsaw

Fix old imports.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:gwibber
This branch contains Public information 
Everyone can see this information.