Commits on May 30, 2011
  1. Database SON manipulator properties PYTHON-150

    behackett committed May 30, 2011
    This change adds properties to database.Database
    to list the class names of installed SON manipulators
    including duplicates.
Commits on May 29, 2011
  1. Add 'with' statement support to cursors PYTHON-39

    Mher Movsisyan committed with behackett May 23, 2011
  2. Tests for PYTHON-209

    jonashaag committed with behackett Mar 18, 2011
Commits on May 28, 2011
Commits on May 27, 2011
Commits on May 25, 2011
Commits on May 23, 2011
  1. A few bug fixes and cleanups.

    behackett committed May 23, 2011
  2. Direct connection if one host provided PYTHON-176

    behackett committed May 23, 2011
    If only one host is provided try to connect to just
    that node and fail otherwise. Previously if the single
    host was part of a replica set we would try to find the
    set's primary based on other hosts returned by an
    'ismaster' query.
    We make a direct connection to a single host even if
    it's a secondary in a replica set. slaveok is no longer
    considered when making a connection.
    If multiple hosts are provided we still try to find a
    master/primary and fail if we can't.
Commits on May 19, 2011
  1. slaveok and safe enhancement PYTHON-181 PYTHON-246

    behackett committed May 19, 2011
    This change adds a new module with some
    common functions and classes used in a number of
    pymongo modules.
    The most important of these is the BaseObject class.
    This provides a new base class that Connection, Database,
    and Collection inherit from. The class provides attributes
    common to each of these subclasses including slave_okay,
    safe and getlasterror options.
    With this change you can now set slaveok, safe, w, wtimeout,
    fsync and j at the Connection, Database, Collection or per-
    operation level. Each level inherits from and can override
    the previous.
    All of these options are now supported as keyword parameters
    to connection.Connection and in the mongodb URI.
Commits on May 9, 2011
  1. Add a new uri_parser module PYTHON-243

    behackett committed May 9, 2011
    This change moves the URI parsing code out
    of pymongo.connection and into a new module,
    pymongo.uri_parser. It also adds validation
    for all MongoDB URI options currently supported
    by pymongo as well as some that will be supported
    in pymongo-2.0. an UnsupportedOption error
    (inheriting from ConfigurationError) is raised
    if the URI includes an option pymongo doesn't
    support or recognize.
    The primary entry point for uri_parser is
    uri_parser.parse_uri which returns a dict of the
    results from parsing the URI. See the documentation
    for more details
Commits on May 6, 2011
  1. Merge branch 'pymongodev'

    behackett committed May 6, 2011
  2. Fix up SystemJS doc string.

    behackett committed May 6, 2011
  3. Catch only UnicodeError for string decode failure.

    behackett committed May 6, 2011
    The default exception (which we use) for decode
    failures is UnicodeError or a subclass of it.
    This fixes a unittest that forces RuntimeError. We
    shouldn't use blanket except blocks either way.
  4. version -> +

    behackett committed May 6, 2011
Commits on May 5, 2011
  1. BUMP 1.11

    behackett committed May 5, 2011
  2. A few minor doc cleanups.

    behackett committed May 5, 2011
  3. More work on Database.validate_collection

    behackett committed May 5, 2011
    Added scandata as a keyword parameter before
    the full parameter.
    validate_collection works with sharding in
    MongoDB versions before 1.9 now.
Commits on May 4, 2011