[kupfer: 10/31] objects: Mark FileLeaf and TextLeaf serilizable
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer: 10/31] objects: Mark FileLeaf and TextLeaf serilizable
- Date: Thu, 31 Dec 2009 12:55:17 +0000 (UTC)
commit 594fbef9fe2de9f74ba77e6276301fcb42abdeb9
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Wed Dec 30 05:02:40 2009 +0100
objects: Mark FileLeaf and TextLeaf serilizable
kupfer/objects.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/kupfer/objects.py b/kupfer/objects.py
index 07349fe..f5cca89 100644
--- a/kupfer/objects.py
+++ b/kupfer/objects.py
@@ -182,6 +182,7 @@ class FileLeaf (Leaf, TextRepresentation):
"""
Represents one file
"""
+ serilizable = True
# To save memory with (really) many instances
__slots__ = ("name", "object")
@@ -1057,6 +1058,7 @@ class TextLeaf (Leaf, TextRepresentation):
"""Represent a text query
represented object is the unicode string
"""
+ serilizable = True
def __init__(self, text, name=None):
"""@text *must* be unicode or UTF-8 str"""
text = tounicode(text)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]