Permalink
Commits on May 4, 2011
  1. Add a method for requesting database info

    Petri Lehtinen committed May 4, 2011
Commits on Apr 28, 2011
Commits on Apr 25, 2011
  1. Merged pull request #18 from akheron/prevent-accidental-attachment-re…

    nailor committed Apr 25, 2011
    …moval.
    
    Prevent accidental attachment removal
Commits on Apr 19, 2011
  1. Prevent accidental attachment removal

    Petri Lehtinen committed Apr 19, 2011
    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 committed Apr 18, 2011
    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 committed Apr 13, 2011
    This reverts commit 5b95953.
    
    Automatic JSONing of arguments for changes feed is too problematic
  2. Revert "Changes: Exlude filter argument from JSONing"

    Jyrki Pulliainen committed Apr 13, 2011
    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 committed Apr 13, 2011
  4. Changes: Properly encode the URL arguments

    Jyrki Pulliainen committed Apr 13, 2011
  5. Enhance continuous changes feed handling

    Petri Lehtinen committed Apr 13, 2011
    - 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. Add get_attachment method to Document

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

    Jyrki Pulliainen committed Apr 7, 2011
  2. Really fix the header copying problem

    Jyrki Pulliainen committed Apr 7, 2011
    This is a fix that should've been included in 0.9.1
  3. Trombi 0.9.1

    Jyrki Pulliainen committed Apr 7, 2011
  4. Changes: Fix a bug in handling headers for clients

    Jyrki Pulliainen committed Apr 7, 2011
    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.
Commits on Apr 5, 2011
  1. doc: Fix a link

    Petri Lehtinen committed Apr 5, 2011
Commits on Mar 31, 2011
  1. Update correct CHANGES document

    Jyrki Pulliainen committed Mar 31, 2011
  2. Update version information in documentation too

    Jyrki Pulliainen committed Mar 31, 2011
  3. Trombi 0.9.0

    Jyrki Pulliainen committed Mar 31, 2011
  4. Claim copyrights from now on, as I no longer work at Inoi

    Jyrki Pulliainen committed Mar 31, 2011
  5. Add version information under trombi module

    Jyrki Pulliainen committed Mar 31, 2011
  6. Introduce CHANGES file

    Jyrki Pulliainen committed Mar 31, 2011
  7. PEP8ify sources

    Jyrki Pulliainen committed Mar 31, 2011
  8. Add a test that catches CouchDB bug 1105.

    Jyrki Pulliainen committed Mar 11, 2011
    The bug is related to timing issues where long polling changes feed on
    Mac OS X does not return any documents which are added immediately
    after opening the changes feed.
Commits on Mar 11, 2011
  1. Initial modifications for SimpleHTTPClient functionality

    Jyrki Pulliainen committed Mar 11, 2011
    For some reason, the list test keeps failing, so it has been removed
    for now.
Commits on Feb 24, 2011
  1. doc: Document from_uri method

    Jyrki Pulliainen committed Feb 24, 2011
  2. Support custom JSON encoder

    Jyrki Pulliainen committed Feb 24, 2011
    A custom JSON encoder can be defined to override the default
    json.JSONEncoder on Database.set.
    
    Note that the only place currently using custom encoder is
    Database.set and it is not (yet) used elsewhere.
Commits on Feb 18, 2011
  1. document: Make attachment handling more robust

    Jyrki Pulliainen committed Feb 18, 2011
    This adds error handling to Document.attach and Document.delete.
    
    Fixes GH-11
  2. Update AUTHORS file to reflect the reality

    Jyrki Pulliainen committed Feb 18, 2011
  3. doc: Add documentation about the new client_args in Server

    Jyrki Pulliainen committed Feb 18, 2011
  4. Make the AsynchHTTPClient options configurable

    Daniel Truemper committed with Jyrki Pulliainen Feb 17, 2011
Commits on Feb 17, 2011
  1. changes: Add possibility to pass timeout argument to the changes feed

    Jyrki Pulliainen committed Feb 17, 2011
    Passing it before was possible too, but the implementation relied on
    the timeout set by CouchDB. This implementation also attaches the
    timeout to the client.
Commits on Feb 16, 2011
  1. Database: wrap changes result in TrombiResult

    Jyrki Pulliainen committed Feb 16, 2011
Commits on Feb 15, 2011
  1. Database: Implment ability to listen changes feed

    Jyrki Pulliainen committed Feb 15, 2011