[kupfer] Fix misspelling of serializable attribute all over



commit 720c2d41073f3272048f5b0a311e05eb4be01608
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Sat Jan 23 02:41:39 2010 +0100

    Fix misspelling of serializable attribute all over
    
    I wish to fix this before it gets too widespread. As it is a class
    attribute it's completely safe to change (yay).

 kupfer/obj/compose.py             |    4 ++--
 kupfer/obj/objects.py             |    4 ++--
 kupfer/plugin/google_translate.py |    2 +-
 kupfer/plugin/higherorder.py      |    2 +-
 kupfer/plugin/rhythmbox.py        |    2 +-
 kupfer/puid.py                    |    4 ++--
 6 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/kupfer/obj/compose.py b/kupfer/obj/compose.py
index d973a87..50db552 100644
--- a/kupfer/obj/compose.py
+++ b/kupfer/obj/compose.py
@@ -35,7 +35,7 @@ class TimedPerform (Perform):
 		return _("Perform command after a specified time interval")
 
 class ComposedLeaf (RunnableLeaf):
-	serilizable = True
+	serializable = 1
 	def __init__(self, obj, action, iobj=None):
 		object_ = (obj, action, iobj)
 		# A slight hack: We remove trailing ellipsis and whitespace
@@ -89,7 +89,7 @@ class MultipleLeaf (Leaf):
 
 	The represented object is a sequence of Leaves
 	"""
-	serilizable = 1
+	serializable = 1
 	def __init__(self, obj, name=_("Multiple Objects")):
 		# modifying the list of objects is strictly forbidden
 		robj = list(datatools.UniqueIterator(obj))
diff --git a/kupfer/obj/objects.py b/kupfer/obj/objects.py
index 78e40e0..566ef52 100644
--- a/kupfer/obj/objects.py
+++ b/kupfer/obj/objects.py
@@ -46,7 +46,7 @@ class FileLeaf (Leaf, TextRepresentation):
 	"""
 	Represents one file: the represented object is a bytestring (important!)
 	"""
-	serilizable = True
+	serializable = 1
 
 	def __init__(self, obj, name=None):
 		"""Construct a FileLeaf
@@ -367,7 +367,7 @@ class TextLeaf (Leaf, TextRepresentation):
 	"""Represent a text query
 	The represented object is a unicode string
 	"""
-	serilizable = True
+	serializable = 1
 	def __init__(self, text, name=None):
 		"""@text *must* be unicode or UTF-8 str"""
 		text = tounicode(text)
diff --git a/kupfer/plugin/google_translate.py b/kupfer/plugin/google_translate.py
index e1db37b..46110bc 100644
--- a/kupfer/plugin/google_translate.py
+++ b/kupfer/plugin/google_translate.py
@@ -196,7 +196,7 @@ class _TranslateQuerySource(Source):
 
 
 class _Language(Leaf):
-	serilizable = 1
+	serializable = 1
 	def get_gicon(self):
 		return icons.ComposedIcon("text-x-generic","preferences-desktop-locale")
 
diff --git a/kupfer/plugin/higherorder.py b/kupfer/plugin/higherorder.py
index dab77d5..17a348f 100644
--- a/kupfer/plugin/higherorder.py
+++ b/kupfer/plugin/higherorder.py
@@ -51,7 +51,7 @@ def _save_result(cleaf):
 	if leaf is None:
 		return None
 	class ResultObject (Leaf):
-		serilizable = 1
+		serializable = 1
 		def __init__(self, leaf, cleaf):
 			Leaf.__init__(self, leaf.object, unicode(leaf))
 			vars(self).update(vars(leaf))
diff --git a/kupfer/plugin/rhythmbox.py b/kupfer/plugin/rhythmbox.py
index 50d08e6..33b76a6 100644
--- a/kupfer/plugin/rhythmbox.py
+++ b/kupfer/plugin/rhythmbox.py
@@ -176,7 +176,7 @@ class Enqueue (Action):
 		return "media-playback-start"
 
 class SongLeaf (Leaf):
-	serilizable = True
+	serializable = 1
 	def __init__(self, info, name=None):
 		"""Init with song info
 		@info: Song information dictionary
diff --git a/kupfer/puid.py b/kupfer/puid.py
index fda399d..28ce8ab 100644
--- a/kupfer/puid.py
+++ b/kupfer/puid.py
@@ -24,7 +24,7 @@ __all__ = [
 ]
 
 
-SERIALIZABLE_ATTRIBUTE = "serilizable"
+SERIALIZABLE_ATTRIBUTE = "serializable"
 
 """
 SerializedObject is a saved representation of a KupferObject, i.e. a
@@ -63,7 +63,7 @@ def conservative_loads(pickledata):
 
 
 class SerializedObject (object):
-	# treat the serilizable attribute as a version number, defined on the class
+	# treat the serializable attribute as a version number, defined on the class
 	def __init__(self, obj):
 		self.data = pickle.dumps(obj, pickle.HIGHEST_PROTOCOL)
 		self.version = getattr(obj, SERIALIZABLE_ATTRIBUTE)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]