Some long lines in bin/desktopcouch-pair
I'd put the recordtype as a constant at the top of the file:
PAIRED_SERVER_TYPE = \ "http://www.freedesktop.org/wiki/Specifications/desktopcouch/paired_server"
couchdb_io has 4 unused imports:
import urllib2 import json import tempfile import os
and relative imports which should be abolutized.
also long lines which I would solve:
base_url = "http://www.freedesktop.org/wiki/Specifications/desktopcouch/" PAIRED_SERVER_RECORD_TYPE = base_url + "paired_server" MY_ID_RECORD_TYPE = base_url + "server_identity"
(there are more. It pays to have an editor that shows them. If you're using emacs, I can send you a thingy that does that)
This is broken (calls a method on self outside a class, ViewDefinition is undefined)
def Xget_replication_list(db): map_js = """function(doc) { emit(doc.managed_by, doc) }""" view_name = "u1_replicators_by_manager" design_document = "ubuntuone_replication" view = ViewDefinition(design_document, view_name, map_js, None) view.sync(db) results = self.execute_view(view_name, design_document) return results
in dbus_io.py:
long lines, and a lot of *args, **kwargs magic (perhaps that cannot be helped)
« Back to merge proposal
Some long lines in bin/desktopcouc h-pair
I'd put the recordtype as a constant at the top of the file:
PAIRED_SERVER_TYPE = \ www.freedesktop .org/wiki/ Specifications/ desktopcouch/ paired_ server"
"http://
couchdb_io has 4 unused imports:
import urllib2
import json
import tempfile
import os
and relative imports which should be abolutized.
also long lines which I would solve:
base_url = "http:// www.freedesktop .org/wiki/ Specifications/ desktopcouch/" SERVER_ RECORD_ TYPE = base_url + "paired_server"
PAIRED_
MY_ID_RECORD_TYPE = base_url + "server_identity"
(there are more. It pays to have an editor that shows them. If you're using emacs, I can send you a thingy that does that)
This is broken (calls a method on self outside a class, ViewDefinition is undefined)
def Xget_replicatio n_list( db): managed_ by, doc) }""" _by_manager" replication" design_ document, view_name, map_js, None) view(view_ name, design_document)
map_js = """function(doc) { emit(doc.
view_name = "u1_replicators
design_document = "ubuntuone_
view = ViewDefinition(
view.sync(db)
results = self.execute_
return results
in dbus_io.py:
long lines, and a lot of *args, **kwargs magic (perhaps that cannot be helped)