doc updates

This commit is contained in:
Mike Dirolf 2009-01-22 11:32:45 -05:00
parent b35c339d6e
commit 37f164629e
3 changed files with 6 additions and 6 deletions

View File

@ -27,7 +27,7 @@ class Collection(object):
- `database`: the database to get a collection from
- `name`: the name of the collection to get
- `options`: dictionary of collection options.
see `Database.create_collection` for details.
see `pymongo.database.Database.create_collection` for details.
"""
if not isinstance(name, types.StringTypes):
raise TypeError("name must be an instance of (str, unicode)")
@ -338,9 +338,9 @@ class Collection(object):
"""Get the options set on this collection.
Returns a dictionary of options and their values - see
`Database.create_collection` for more information on the options
dictionary. Returns an empty dictionary if the collection has not been
created yet.
`pymongo.database.Database.create_collection` for more information on
the options dictionary. Returns an empty dictionary if the collection
has not been created yet.
"""
result = self.__database.system.namespaces.find_one(
{"name": self.full_name()})

View File

@ -1,7 +1,7 @@
"""Different managers to handle when cursors are killed after they are closed.
New cursor managers should be defined as subclasses of CursorManager and can be
installed on a connection by calling `Connection.set_cursor_manager`."""
installed on a connection by calling `pymongo.connection.Connection.set_cursor_manager`."""
import types

View File

@ -1,7 +1,7 @@
"""Manipulators that can edit SON objects as the enter and exit a database.
New manipulators should be defined as subclasses of SONManipulator and can be
installed on a database by calling `Database.add_son_manipulator`."""
installed on a database by calling `pymongo.database.Database.add_son_manipulator`."""
from objectid import ObjectId