Merge lp:~thisfred/u1db/quickfix into lp:u1db

Proposed by Eric Casteleijn
Status: Merged
Approved by: Eric Casteleijn
Approved revision: 272
Merged at revision: 272
Proposed branch: lp:~thisfred/u1db/quickfix
Merge into: lp:u1db
Diff against target: 15 lines (+3/-2)
1 file modified
u1todo/ui.py (+3/-2)
To merge this branch: bzr merge lp:~thisfred/u1db/quickfix
Reviewer Review Type Date Requested Status
Lucio Torre (community) Approve
Review via email: mp+105217@code.launchpad.net

Description of the change

fix for oauth creds snafu

To post a comment you must log in.
Revision history for this message
Lucio Torre (lucio.torre) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'u1todo/ui.py'
2--- u1todo/ui.py 2012-05-08 20:44:41 +0000
3+++ u1todo/ui.py 2012-05-09 14:56:19 +0000
4@@ -151,8 +151,9 @@
5 except DatabaseDoesNotExist:
6 # The server does not yet have the database, so create it.
7 if target.startswith('http://') or target.startswith('https://'):
8- HTTPDatabase.open_database(
9- target, create=True, oauth_creds=oauth_creds)
10+ db = HTTPDatabase(target)
11+ db.set_oauth_credentials(**oauth_creds)
12+ db.open(create=True)
13 syncer.sync()
14 self.refresh_filter()
15 self.last_synced.setText(

Subscribers

People subscribed via source and target branches