diff options
| author | Kali Kaneko <kali@leap.se> | 2015-06-10 12:06:26 -0400 | 
|---|---|---|
| committer | Kali Kaneko <kali@leap.se> | 2015-06-10 12:06:26 -0400 | 
| commit | 2d4df4e59336f4f956fc8cd9df8fd4a996f1b292 (patch) | |
| tree | 268922c34889693dbf57a9010e6aefcac729336b | |
| parent | d7ebd62ea541a508eed79d5ffe47011f94227bc8 (diff) | |
| parent | bbb19ed9a755a079da5b79567cb98a921c02f2f4 (diff) | |
Merge tag '0.6.5' into debian/experimental
Tag version 0.6.5.
| -rw-r--r-- | CHANGELOG | 9 | ||||
| -rw-r--r-- | common/MANIFEST.in | 4 | ||||
| -rw-r--r-- | common/setup.py | 5 | ||||
| -rw-r--r-- | common/src/leap/soledad/common/couch.py | 8 | ||||
| -rw-r--r-- | server/src/leap/soledad/server/__init__.py | 5 | 
5 files changed, 20 insertions, 11 deletions
| @@ -1,3 +1,12 @@ +0.6.5 Apr 09 2015: +Server: +  o Remove unneeded parameters from CouchServerState initialization. Closes +    #6833. + +0.6.4 Jan 23 2015: +Common: +  o Bail out if cdocs/ dir does not exist. Closes: #6671 +  0.6.3 Dec 16 2014:  Client:    o Fix deferred encryption/decryption parameters (#6500). diff --git a/common/MANIFEST.in b/common/MANIFEST.in index 7f6148ef..a26a12a6 100644 --- a/common/MANIFEST.in +++ b/common/MANIFEST.in @@ -2,3 +2,7 @@ include pkg/*  include versioneer.py  include LICENSE  include CHANGELOG + +# What do we want the ddocs folder in the source package for? -- kali +# it should be enough with having the compiled stuff. +recursive-include src/leap/soledad/common/ddocs * diff --git a/common/setup.py b/common/setup.py index 6ee166ef..365006b2 100644 --- a/common/setup.py +++ b/common/setup.py @@ -155,6 +155,11 @@ def build_ddocs_py(basedir=None, with_src=True):          dest_prefix = join(basedir, *dest_common_path)      ddocs_prefix = join(prefix, 'ddocs') + +    if not isdir(ddocs_prefix): +        print "No ddocs/ folder, bailing out..." +        return +      ddocs = {}      # design docs are represented by subdirectories of `ddocs_prefix` diff --git a/common/src/leap/soledad/common/couch.py b/common/src/leap/soledad/common/couch.py index 5658f4ce..b38b5b96 100644 --- a/common/src/leap/soledad/common/couch.py +++ b/common/src/leap/soledad/common/couch.py @@ -1529,20 +1529,14 @@ class CouchServerState(ServerState):      Inteface of the WSGI server with the CouchDB backend.      """ -    def __init__(self, couch_url, shared_db_name, tokens_db_name): +    def __init__(self, couch_url):          """          Initialize the couch server state.          :param couch_url: The URL for the couch database.          :type couch_url: str -        :param shared_db_name: The name of the shared database. -        :type shared_db_name: str -        :param tokens_db_name: The name of the tokens database. -        :type tokens_db_name: str          """          self._couch_url = couch_url -        self._shared_db_name = shared_db_name -        self._tokens_db_name = tokens_db_name      def open_database(self, dbname):          """ diff --git a/server/src/leap/soledad/server/__init__.py b/server/src/leap/soledad/server/__init__.py index cd006f51..adb5b561 100644 --- a/server/src/leap/soledad/server/__init__.py +++ b/server/src/leap/soledad/server/__init__.py @@ -296,10 +296,7 @@ def load_configuration(file_path):  def application(environ, start_response):      conf = load_configuration('/etc/leap/soledad-server.conf') -    state = CouchServerState( -        conf['couch_url'], -        SoledadApp.SHARED_DB_NAME, -        SoledadTokenAuthMiddleware.TOKENS_DB) +    state = CouchServerState(conf['couch_url'])      # WSGI application that may be used by `twistd -web`      application = GzipMiddleware(          SoledadTokenAuthMiddleware(SoledadApp(state))) | 
