summaryrefslogtreecommitdiff
path: root/docs/ref/contrib
diff options
context:
space:
mode:
authorBaptiste Mispelon <bmispelon@gmail.com>2014-01-22 22:26:10 +0100
committerBaptiste Mispelon <bmispelon@gmail.com>2014-01-22 23:00:06 +0100
commit6bf05c0267b388bdf6f2bda6f1915c1ac8a02b35 (patch)
tree3855a1de9447780739c81e4383e95fb74a54d273 /docs/ref/contrib
parent6bca149af5b8e2d6fb6fe19bdb53904f07248033 (diff)
[1.6.x] Always use parentheses when documenting a method with no arguments.
Backport of 05d36dc06e6d767bb28993c65a54b703f319a386 from master.
Diffstat (limited to 'docs/ref/contrib')
-rw-r--r--docs/ref/contrib/comments/moderation.txt2
-rw-r--r--docs/ref/contrib/formtools/form-preview.txt2
-rw-r--r--docs/ref/contrib/formtools/form-wizard.txt2
-rw-r--r--docs/ref/contrib/gis/gdal.txt16
4 files changed, 11 insertions, 11 deletions
diff --git a/docs/ref/contrib/comments/moderation.txt b/docs/ref/contrib/comments/moderation.txt
index 5f0badfadb..2f14064191 100644
--- a/docs/ref/contrib/comments/moderation.txt
+++ b/docs/ref/contrib/comments/moderation.txt
@@ -222,7 +222,7 @@ models with an instance of the subclass.
:func:`moderator.unregister` methods detailed above, the following methods
on :class:`Moderator` can be overridden to achieve customized behavior:
- .. method:: connect
+ .. method:: connect()
Determines how moderation is set up globally. The base
implementation in
diff --git a/docs/ref/contrib/formtools/form-preview.txt b/docs/ref/contrib/formtools/form-preview.txt
index b86cc4dc90..6a30fe9d9f 100644
--- a/docs/ref/contrib/formtools/form-preview.txt
+++ b/docs/ref/contrib/formtools/form-preview.txt
@@ -111,7 +111,7 @@ default templates.
Advanced ``FormPreview`` methods
================================
-.. method:: FormPreview.process_preview
+.. method:: FormPreview.process_preview()
Given a validated form, performs any extra processing before displaying the
preview page, and saves any extra data in context.
diff --git a/docs/ref/contrib/formtools/form-wizard.txt b/docs/ref/contrib/formtools/form-wizard.txt
index ca11aef763..6a1e328ba8 100644
--- a/docs/ref/contrib/formtools/form-wizard.txt
+++ b/docs/ref/contrib/formtools/form-wizard.txt
@@ -229,7 +229,7 @@ Here's a full example template:
Hooking the wizard into a URLconf
---------------------------------
-.. method:: WizardView.as_view
+.. method:: WizardView.as_view()
Finally, we need to specify which forms to use in the wizard, and then
deploy the new :class:`WizardView` object at a URL in the ``urls.py``. The
diff --git a/docs/ref/contrib/gis/gdal.txt b/docs/ref/contrib/gis/gdal.txt
index dd4498cca1..3f26606ae5 100644
--- a/docs/ref/contrib/gis/gdal.txt
+++ b/docs/ref/contrib/gis/gdal.txt
@@ -459,19 +459,19 @@ systems and coordinate transformation::
Constructs a :class:`Polygon` from the given bounding-box (a 4-tuple).
- .. method:: __len__
+ .. method:: __len__()
Returns the number of points in a :class:`LineString`, the
number of rings in a :class:`Polygon`, or the number of geometries in a
:class:`GeometryCollection`. Not applicable to other geometry types.
- .. method:: __iter__
+ .. method:: __iter__()
Iterates over the points in a :class:`LineString`, the rings in a
:class:`Polygon`, or the geometries in a :class:`GeometryCollection`.
Not applicable to other geometry types.
- .. method:: __getitem__
+ .. method:: __getitem__()
Returns the point at the specified index for a :class:`LineString`, the
interior ring at the specified index for a :class:`Polygon`, or the geometry
@@ -677,7 +677,7 @@ systems and coordinate transformation::
Returns ``True`` if this geometry overlaps the other, otherwise returns
``False``.
- .. method:: boundary
+ .. method:: boundary()
The boundary of this geometry, as a new :class:`OGRGeometry` object.
@@ -686,22 +686,22 @@ systems and coordinate transformation::
The smallest convex polygon that contains this geometry, as a new
:class:`OGRGeometry` object.
- .. method:: difference
+ .. method:: difference()
Returns the region consisting of the difference of this geometry and
the other, as a new :class:`OGRGeometry` object.
- .. method:: intersection
+ .. method:: intersection()
Returns the region consisting of the intersection of this geometry and
the other, as a new :class:`OGRGeometry` object.
- .. method:: sym_difference
+ .. method:: sym_difference()
Returns the region consisting of the symmetric difference of this
geometry and the other, as a new :class:`OGRGeometry` object.
- .. method:: union
+ .. method:: union()
Returns the region consisting of the union of this geometry and
the other, as a new :class:`OGRGeometry` object.