From b89982fd997859fc8ef62ada5280823d0ee96fd1 Mon Sep 17 00:00:00 2001 From: Harry Marr Date: Sat, 2 Jan 2010 21:34:48 +0000 Subject: [PATCH] Version bump to 0.1 beta --- LICENSE | 2 +- docs/userguide.rst | 16 ++++++++-------- mongoengine/__init__.py | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/LICENSE b/LICENSE index 2c6758b0..e33b2c59 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2009 Harry Marr +Copyright (c) 2009-2010 Harry Marr Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/docs/userguide.rst b/docs/userguide.rst index ce4d18db..296816e0 100644 --- a/docs/userguide.rst +++ b/docs/userguide.rst @@ -293,9 +293,9 @@ Limiting and skipping results ----------------------------- Just as with traditional ORMs, you may limit the number of results returned, or skip a number or results in you query. -:meth:`mongoengine.queryset.QuerySet.limit` and -:meth:`mongoengine.queryset.QuerySet.skip` and methods are available on -:class:`mongoengine.queryset.QuerySet` objects, but the prefered syntax for +:meth:`~mongoengine.queryset.QuerySet.limit` and +:meth:`~mongoengine.queryset.QuerySet.skip` and methods are available on +:class:`~mongoengine.queryset.QuerySet` objects, but the prefered syntax for achieving this is using array-slicing syntax:: # Only the first 5 people @@ -317,8 +317,8 @@ Javascript code that is executed on the database server. Counting results ^^^^^^^^^^^^^^^^ Just as with limiting and skipping results, there is a method on -:class:`mongoengine.queryset.QuerySet` objects -- -:meth:`mongoengine.queryset.QuerySet.count`, but there is also a more Pythonic +:class:`~mongoengine.queryset.QuerySet` objects -- +:meth:`~mongoengine.queryset.QuerySet.count`, but there is also a more Pythonic way of achieving this:: num_users = len(User.objects) @@ -326,7 +326,7 @@ way of achieving this:: Further aggregation ^^^^^^^^^^^^^^^^^^^ You may sum over the values of a specific field on documents using -:meth:`mongoengine.queryset.QuerySet.sum`:: +:meth:`~mongoengine.queryset.QuerySet.sum`:: yearly_expense = Employee.objects.sum('salary') @@ -335,13 +335,13 @@ You may sum over the values of a specific field on documents using the sum. To get the average (mean) of a field on a collection of documents, use -:meth:`mongoengine.queryset.QuerySet.average`:: +:meth:`~mongoengine.queryset.QuerySet.average`:: mean_age = User.objects.average('age') As MongoDB provides native lists, MongoEngine provides a helper method to get a dictionary of the frequencies of items in lists across an entire collection -- -:meth:`mongoengine.queryset.QuerySet.item_frequencies`. An example of its use +:meth:`~mongoengine.queryset.QuerySet.item_frequencies`. An example of its use would be generating "tag-clouds":: class Article(Document): diff --git a/mongoengine/__init__.py b/mongoengine/__init__.py index ede2736f..2b308da4 100644 --- a/mongoengine/__init__.py +++ b/mongoengine/__init__.py @@ -12,7 +12,7 @@ __all__ = (document.__all__ + fields.__all__ + connection.__all__ + __author__ = 'Harry Marr' -VERSION = (0, 1, 0, 'alpha') +VERSION = (0, 1, 0, 'beta') def get_version(): version = '%s.%s' % (VERSION[0], VERSION[1])