[kupfer: 9/20] plugin.putty: Use PicklingHelperMixin
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer: 9/20] plugin.putty: Use PicklingHelperMixin
- Date: Wed, 7 Oct 2009 11:33:34 +0000 (UTC)
commit 55c7547763f5b5d7121118cfbf8caa0d6d4a961e
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Tue Oct 6 13:44:38 2009 +0200
plugin.putty: Use PicklingHelperMixin
kupfer/plugin/putty.py | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/kupfer/plugin/putty.py b/kupfer/plugin/putty.py
index fbf3ccb..0c3a708 100644
--- a/kupfer/plugin/putty.py
+++ b/kupfer/plugin/putty.py
@@ -4,8 +4,8 @@ from __future__ import with_statement
import os
import urllib
-from kupfer.objects import (Leaf, Action, Source, TextSource, FilesystemWatchMixin,
- AppLeafContentMixin)
+from kupfer.objects import Leaf, Action, Source, AppLeafContentMixin
+from kupfer.helplib import FilesystemWatchMixin, PicklingHelperMixin
from kupfer import utils
__kupfer_name__ = _("PuTTY Sessions")
@@ -45,10 +45,12 @@ class PuttyOpenSession(Action):
return 'putty'
-class PuttySessionSource(AppLeafContentMixin, Source, FilesystemWatchMixin):
+class PuttySessionSource(AppLeafContentMixin, Source, PicklingHelperMixin,
+ FilesystemWatchMixin):
+ ''' indexes session saved in putty '''
+
appleaf_content_id = 'putty'
- ''' indexes session saved in putty '''
def __init__(self, name=_("PuTTY Sessions")):
super(PuttySessionSource, self).__init__(name)
self._putty_sessions_dir = os.path.expanduser('~/.putty/sessions')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]