[kupfer] putty: add HOST_ADDRESS_KEY and HOST_SERVICE_NAME_KEY to leaves



commit dde9c0df750c0a5c17c4e416f9510b3164472fcc
Author: Karol BÄ?dkowski <karol bedkowski gmail com>
Date:   Mon Apr 12 17:33:13 2010 +0200

    putty: add HOST_ADDRESS_KEY and HOST_SERVICE_NAME_KEY to leaves
    
    Now leaves generated by putty can be opened by other actions that support
    ssh service.

 kupfer/plugin/putty.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/kupfer/plugin/putty.py b/kupfer/plugin/putty.py
index 9dde4cb..f5ad0e4 100644
--- a/kupfer/plugin/putty.py
+++ b/kupfer/plugin/putty.py
@@ -6,7 +6,7 @@ __kupfer_name__ = _("PuTTY Sessions")
 __kupfer_sources__ = ("PuttySessionSource", )
 __kupfer_actions__ = ("PuttyOpenSession", )
 __description__ = _("Quick access to PuTTY Sessions")
-__version__ = "2010-01-07"
+__version__ = "2010-04-12"
 __author__ = "Karol BÄ?dkowski <karol bedkowski gmail com>"
 
 
@@ -28,7 +28,8 @@ class PuttySession(HostLeaf):
 	""" Leaf represent session saved in PuTTy"""
 
 	def __init__(self, name, hostname, description):
-		slots = {HOST_NAME_KEY: hostname, PUTTY_SESSION_KEY: name}
+		slots = {HOST_NAME_KEY: hostname, PUTTY_SESSION_KEY: name,
+				HOST_ADDRESS_KEY: hostname, HOST_SERVICE_NAME_KEY: 'ssh'}
 		HostLeaf.__init__(self, slots, name)
 		self._description = description
 



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