Merge lp:~sil/ubuntuone-client/create-mgt-desktopcouch-db into lp:ubuntuone-client

Proposed by Stuart Langridge
Status: Merged
Approved by: Guillermo Gonzalez
Approved revision: 226
Merged at revision: not available
Proposed branch: lp:~sil/ubuntuone-client/create-mgt-desktopcouch-db
Merge into: lp:ubuntuone-client
Diff against target: 12 lines
1 file modified
bin/ubuntuone-client-applet (+1/-1)
To merge this branch: bzr merge lp:~sil/ubuntuone-client/create-mgt-desktopcouch-db
Reviewer Review Type Date Requested Status
John O'Brien (community) Approve
Guillermo Gonzalez Approve
Review via email: mp+12584@code.launchpad.net

Commit message

Create management database if it does not exist

To post a comment you must log in.
Revision history for this message
Stuart Langridge (sil) wrote :

Create management database if it does not exist

Revision history for this message
Guillermo Gonzalez (verterok) :
review: Approve
Revision history for this message
John O'Brien (jdobrien) wrote :

woah...try to keep branches down to a manageable size please :)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/ubuntuone-client-applet'
2--- bin/ubuntuone-client-applet 2009-09-28 21:31:53 +0000
3+++ bin/ubuntuone-client-applet 2009-09-29 12:55:18 +0000
4@@ -328,7 +328,7 @@
5 " desktopcouch is not installed"))
6 return
7 # Check whether there is already a record of the Ubuntu One service
8- db = CouchDatabase("management")
9+ db = CouchDatabase("management", create=True)
10 if not db.view_exists("ubuntu_one_pair_record","ubuntu_one_pair_record"):
11 map_js = """function(doc) {
12 if (doc.service_name == "ubuntuone") {

Subscribers

People subscribed via source and target branches