From e371599df4d566f822896ebab114697a9c824e6f Mon Sep 17 00:00:00 2001 From: Raphael Ackermann Date: Sun, 4 Apr 2010 18:55:58 +0000 Subject: [PATCH] docstring typo fixes svn: r15030 --- src/gen/lib/event.py | 4 ++-- src/gen/lib/family.py | 4 ++-- src/gen/lib/mediaobj.py | 6 +++--- src/gen/lib/mediaref.py | 2 +- src/gen/lib/person.py | 4 ++-- src/gen/lib/place.py | 4 ++-- src/plugins/view/mediaview.py | 2 +- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/gen/lib/event.py b/src/gen/lib/event.py index d958bac1f..c829b685a 100644 --- a/src/gen/lib/event.py +++ b/src/gen/lib/event.py @@ -89,9 +89,9 @@ class Event(SourceBase, NoteBase, MediaBase, AttributeBase, This method is used to convert the object into a form that can easily be saved to a database. - These elements may be primative Python types (string, integers), + These elements may be primitive Python types (string, integers), complex Python types (lists or tuples, or Python objects. If the - target database cannot handle complex types (such as objectes or + target database cannot handle complex types (such as objects or lists), the database is responsible for converting the data into a form that it can use. diff --git a/src/gen/lib/family.py b/src/gen/lib/family.py index 5dfb49d84..464ce3486 100644 --- a/src/gen/lib/family.py +++ b/src/gen/lib/family.py @@ -99,9 +99,9 @@ class Family(SourceBase, NoteBase, MediaBase, AttributeBase, LdsOrdBase, This method is used to convert the object into a form that can easily be saved to a database. - These elements may be primative Python types (string, integers), + These elements may be primitive Python types (string, integers), complex Python types (lists or tuples, or Python objects. If the - target database cannot handle complex types (such as objectes or + target database cannot handle complex types (such as objects or lists), the database is responsible for converting the data into a form that it can use. diff --git a/src/gen/lib/mediaobj.py b/src/gen/lib/mediaobj.py index 840dd4d19..5ffeb9ef7 100644 --- a/src/gen/lib/mediaobj.py +++ b/src/gen/lib/mediaobj.py @@ -51,7 +51,7 @@ from gen.lib.markertype import MarkerType class MediaObject(SourceBase, NoteBase, DateBase, AttributeBase, PrimaryObject): """ - Containter for information about an image file, including location, + Container for information about an image file, including location, description and privacy. """ @@ -90,9 +90,9 @@ class MediaObject(SourceBase, NoteBase, DateBase, AttributeBase, This method is used to convert the object into a form that can easily be saved to a database. - These elements may be primative Python types (string, integers), + These elements may be primitive Python types (string, integers), complex Python types (lists or tuples, or Python objects. If the - target database cannot handle complex types (such as objectes or + target database cannot handle complex types (such as objects or lists), the database is responsible for converting the data into a form that it can use. diff --git a/src/gen/lib/mediaref.py b/src/gen/lib/mediaref.py index e66613fcd..12353fcb2 100644 --- a/src/gen/lib/mediaref.py +++ b/src/gen/lib/mediaref.py @@ -132,7 +132,7 @@ class MediaRef(SecondaryObject, PrivacyBase, SourceBase, NoteBase, RefBase, return self.attribute_list + self.source_list def set_rectangle(self, coord): - """Set subection of an image.""" + """Set subsection of an image.""" self.rect = coord def get_rectangle(self): diff --git a/src/gen/lib/person.py b/src/gen/lib/person.py index 7a5e46c17..b357c6c18 100644 --- a/src/gen/lib/person.py +++ b/src/gen/lib/person.py @@ -116,9 +116,9 @@ class Person(SourceBase, NoteBase, AttributeBase, MediaBase, This method is used to convert the object into a form that can easily be saved to a database. - These elements may be primative Python types (string, integers), + These elements may be primitive Python types (string, integers), complex Python types (lists or tuples, or Python objects. If the - target database cannot handle complex types (such as objectes or + target database cannot handle complex types (such as objects or lists), the database is responsible for converting the data into a form that it can use. diff --git a/src/gen/lib/place.py b/src/gen/lib/place.py index f20ab9c7a..b378f6902 100644 --- a/src/gen/lib/place.py +++ b/src/gen/lib/place.py @@ -84,9 +84,9 @@ class Place(SourceBase, NoteBase, MediaBase, UrlBase, PrimaryObject): This method is used to convert the object into a form that can easily be saved to a database. - These elements may be primative Python types (string, integers), + These elements may be primitive Python types (string, integers), complex Python types (lists or tuples, or Python objects. If the - target database cannot handle complex types (such as objectes or + target database cannot handle complex types (such as objects or lists), the database is responsible for converting the data into a form that it can use. diff --git a/src/plugins/view/mediaview.py b/src/plugins/view/mediaview.py index 4bb828d9a..2d06bd282 100644 --- a/src/plugins/view/mediaview.py +++ b/src/plugins/view/mediaview.py @@ -179,7 +179,7 @@ class MediaView(ListView): def drag_info(self): """ - Return the type of DND targetst that this view will accept. For Media + Return the type of DND targets that this view will accept. For Media View, we will accept media objects. """ return DdTargets.MEDIAOBJ