From 37f164629ef4b61b4e66ff62c42df92b4d5c1b60 Mon Sep 17 00:00:00 2001 From: Mike Dirolf Date: Thu, 22 Jan 2009 11:32:45 -0500 Subject: [PATCH] doc updates --- pymongo/collection.py | 8 ++++---- pymongo/cursor_manager.py | 2 +- pymongo/son_manipulator.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pymongo/collection.py b/pymongo/collection.py index 40dcbd015..25de8c499 100644 --- a/pymongo/collection.py +++ b/pymongo/collection.py @@ -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()}) diff --git a/pymongo/cursor_manager.py b/pymongo/cursor_manager.py index e7710115f..a91cd2177 100644 --- a/pymongo/cursor_manager.py +++ b/pymongo/cursor_manager.py @@ -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 diff --git a/pymongo/son_manipulator.py b/pymongo/son_manipulator.py index 02eb3726a..7828fcfc2 100644 --- a/pymongo/son_manipulator.py +++ b/pymongo/son_manipulator.py @@ -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