[kupfer: 28/51] obj.apps: Introduce ApplicationSource



commit f5f15caefde84c67638179581dd9157d1aa84c3d
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Sat Jan 9 16:49:32 2010 +0100

    obj.apps: Introduce ApplicationSource
    
    ApplicationSource is a convenience class for a commonly used Source in
    plugins, in effect using all three mixins for app content, pickling
    and fileystem watch.

 kupfer/obj/apps.py |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/kupfer/obj/apps.py b/kupfer/obj/apps.py
index 827cd78..3102365 100644
--- a/kupfer/obj/apps.py
+++ b/kupfer/obj/apps.py
@@ -1,4 +1,5 @@
-from kupfer.obj.base import InvalidDataError
+from kupfer.obj.base import InvalidDataError, Source
+from kupfer.obj.helplib import PicklingHelperMixin, FilesystemWatchMixin
 from kupfer.obj.objects import AppLeaf
 
 class AppLeafContentMixin (object):
@@ -43,3 +44,7 @@ class AppLeafContentMixin (object):
 		if leaf == cls.get_leaf_repr():
 			return cls()
 
+class ApplicationSource(AppLeafContentMixin, Source, PicklingHelperMixin,
+		FilesystemWatchMixin):
+	pass
+



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