Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on May 5, 2012
  1. @bjorkegeek
Commits on Apr 30, 2012
  1. @bjorkegeek

    Increased tornado http timeout to 20 seconds more than couchdb timeout

    bjorkegeek authored
    when using feed=continuous with changes()
Commits on Jan 15, 2012
  1. @truemped @nailor

    Session: Session API support

    truemped authored nailor committed
    The session API allows one to login and logout. Subsequent requests can
    then be authenticated using cookie authentication and not username and
    password.
Commits on Nov 28, 2011
  1. @nailor

    Database: Accept callback as keyword argument in Database.set

    nailor authored
    To support tornado.gen mechanism, we'll now on accept callback as a
    keyword argument for Database.set.
    
    Fixes GH-34
Commits on Oct 25, 2011
  1. @nailor

    Merge pull request #30 from truemped/usermgmt

    nailor authored
    Adding support for CouchDB user management
  2. @mharju @nailor

    Fixed paginator to actually use the input keyword arguments.

    mharju authored nailor committed
  3. @mharju @nailor

    Fix error handler to return error to callback

    mharju authored nailor committed
  4. @truemped
Commits on Oct 19, 2011
  1. @truemped
  2. @truemped

    Adding support for CouchDB user management

    truemped authored
    You may call either method on the `trombi.Server` instance:
    
    - add_user(name, password, callback, doc=None)
        Add a user with a name, password and a callback. Optionally
        add the default user doc with the doc arg
    
    - get_user(name, callback)
        Return the user's document
    
    - update_user(user_doc, password, callback)
        Update a user's document. If you want the password not to be
        changed, use `None` as value.
    
    - delete_user(user_doc, callback)
        Simply delete a user document
Commits on Oct 9, 2011
  1. @graylikeme
  2. @graylikeme
Commits on Jul 26, 2011
  1. @nailor

    Database.get: Handle possible connection errors better

    nailor authored
    This should be abstracted to a more common level, but for now this is
    sufficient
Commits on Jun 23, 2011
  1. @nailor
  2. @nailor

    Client: Handle inline attachments better

    nailor authored
    CouchDB 1.1 added multipart replies to attachments=true as default.
    Passing application/json circumvents this. However, this should be
    properly fixed in future releases.
  3. @akheron

    Support Python 3

    Petri Lehtinen authored akheron committed
    This commit adds support for Python 3 in such a way that exactly the
    same code works with both Python 2 and Python 3, i.e. no 2to3 or other
    conversions are needed.
    
    I tested the code by running the unit tests with Python 2.6 and 3.2,
    and Tornado 2.0.
    
    Fixes #23.
Commits on Jun 8, 2011
  1. @nailor
  2. @nailor

    View: Don't try to create Document if doc is None

    nailor authored
    This occures when a view emits data with custom _id that actually does
    not point to any document.
Commits on May 5, 2011
  1. Fix "Copuright" -> "Copyright"

    Petri Lehtinen authored
    I assume this was a so called "copu-paste" error :)
Commits on May 4, 2011
  1. Wrap the Database.info result to a TrombiDict

    Petri Lehtinen authored
  2. Add a method for requesting database info

    Petri Lehtinen authored
Commits on Apr 28, 2011
Commits on Apr 19, 2011
  1. Prevent accidental attachment removal

    Petri Lehtinen authored
    Here's a scenario:
    
    1. There's a document mydoc in CouchDB. It has one attachment,
       file1.txt.
    
    2. The user fetches the document:
    
           db.get('mydoc', callback1).
    
    3. The user adds an attachment to the document:
    
           doc.attach('file2.txt', 'Hello, World!', callback2)
    
    4. In callback2, the user modifies the document:
    
           doc['foo'] = 'bar'
           db.set(doc, callback3)`.
    
    Result: attachment file2.txt is removed from CouchDB.
    
    This happens because, in callback2, the document object has the
    attachments field, but only the attachment file1.txt is listed. In
    db.set(), an _attachments field with only file1.txt is sent, so
    CouchDB goes on and removes other attachments, file2.txt in this case.
    
    This patch fixes the issue by adding an appropriate stub to document's
    attachments list when doc.attach() finishes.
Commits on Apr 18, 2011
  1. View: Transform docs in results to Document objects

    Jyrki Pulliainen authored
    If view is queried with include_docs=True, transform the row['doc'] in
    to a trombi.Document. This also makes a minor API change to the
    ViewResult object, which now has a new optional argument, db, which
    defaults to None.
    
    Closes GH-17
Commits on Apr 13, 2011
  1. Revert "Changes: Properly encode the URL arguments"

    Jyrki Pulliainen authored
    This reverts commit 5b95953.
    
    Automatic JSONing of arguments for changes feed is too problematic
  2. Revert "Changes: Exlude filter argument from JSONing"

    Jyrki Pulliainen authored
    This reverts commit de4eb3e.
    
    Automatic JSONing in changes feed is so problematic that parts of it
    needs further thinking.
  3. Changes: Exlude filter argument from JSONing

    Jyrki Pulliainen authored
  4. Changes: Properly encode the URL arguments

    Jyrki Pulliainen authored
  5. Enhance continuous changes feed handling

    Petri Lehtinen authored
    - Fix handling of more than one change. This didn't work at all.
    
    - Run the handler outside the streaming_callback context, as an ioloop
      callback. This makes it possible to start new HTTP requests in the
      handler, e.g. by calling almost any trombi API function.
    
    - Issue a warning log message if a changes feed line cannot be parsed
      as JSON.
    
    - Expand on the test case.
Commits on Apr 12, 2011
  1. @nailor

    Add get_attachment method to Document

    Petri Lehtinen authored nailor committed
    Fixes #14.
Commits on Apr 7, 2011
  1. Trombi 0.9.2

    Jyrki Pulliainen authored
  2. Really fix the header copying problem

    Jyrki Pulliainen authored
    This is a fix that should've been included in 0.9.1
  3. Trombi 0.9.1

    Jyrki Pulliainen authored
  4. Changes: Fix a bug in handling headers for clients

    Jyrki Pulliainen authored
    Previous behaviour caused all requests to get same HTTPHeaders
    instance. This caused problems with long polling changes feed when
    using filters, as the CouchDB received Content-Length in some cases
    and hang.
Something went wrong with that request. Please try again.