From a5ddab40dbe8f09b6595dd98355759cbd377953c Mon Sep 17 00:00:00 2001 From: Mike Dirolf Date: Fri, 30 Jan 2009 15:10:57 -0500 Subject: [PATCH] properly indent lists --- gridfs/grid_file.py | 22 +++++++++++----------- pymongo/database.py | 10 +++++----- pymongo/mongo.py | 8 ++++---- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/gridfs/grid_file.py b/gridfs/grid_file.py index 18a9f6fb1..a434010eb 100644 --- a/gridfs/grid_file.py +++ b/gridfs/grid_file.py @@ -46,17 +46,17 @@ class GridFile(object): files exist, a new file is created using the metadata in file_spec. The valid fields in a file_spec are as follows: - - "_id": unique ID for this file - * default: `pymongo.objectid.ObjectId()` - - "filename": human name for the file - - "contentType": valid mime-type for the file - - "length": size of the file, in bytes - * only used for querying, automatically set for inserts - - "chunkSize": size of each of the chunks, in bytes - * default: 256 kb - - "uploadDate": date when the object was first stored - * only used for querying, automatically set for inserts - - "aliases": array of alias strings + - "_id": unique ID for this file + * default: `pymongo.objectid.ObjectId()` + - "filename": human name for the file + - "contentType": valid mime-type for the file + - "length": size of the file, in bytes + * only used for querying, automatically set for inserts + - "chunkSize": size of each of the chunks, in bytes + * default: 256 kb + - "uploadDate": date when the object was first stored + * only used for querying, automatically set for inserts + - "aliases": array of alias strings :Parameters: - `file_spec`: query specifier as described above diff --git a/pymongo/database.py b/pymongo/database.py index 908cdfc0f..2f8002256 100644 --- a/pymongo/database.py +++ b/pymongo/database.py @@ -110,11 +110,11 @@ class Database(object): Options should be a dictionary, with any of the following options: - - "size": desired initial size for the collection. must be less than or - equal to 10000000000. for capped collections this size is the max - size of the collection. - - "capped": if True, this is a capped collection - - "max": maximum number of objects if capped (optional) + - "size": desired initial size for the collection. must be less than + or equal to 10000000000. for capped collections this size is the max + size of the collection. + - "capped": if True, this is a capped collection + - "max": maximum number of objects if capped (optional) :Parameters: - `name`: the name of the collection to create diff --git a/pymongo/mongo.py b/pymongo/mongo.py index 218fe4911..3ebb1e4d2 100644 --- a/pymongo/mongo.py +++ b/pymongo/mongo.py @@ -42,10 +42,10 @@ class Mongo(database.Database): Settings are passed in as a dictionary. Possible settings, along with their default values (in parens), are listed below: - - "auto_dereference" (False): automatically dereference any `DBRef` - contained within SON objects being returned from queries - - "auto_reference" (False): automatically create `DBRef` out of any - sub-objects that have already been saved in the database + - "auto_dereference" (False): automatically dereference any `DBRef` + contained within SON objects being returned from queries + - "auto_reference" (False): automatically create `DBRef` out of any + sub-objects that have already been saved in the database :Parameters: - `name`: the name of the database to connect to