[kupfer: 30/31] templates: Make sure you can pickle the reversed action



commit 45d4b6637985859b4d3800a35ab59d1205e010b1
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Thu Dec 31 13:27:43 2009 +0100

    templates: Make sure you can pickle the reversed action

 kupfer/plugin/templates.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/kupfer/plugin/templates.py b/kupfer/plugin/templates.py
index 737e737..039f48f 100644
--- a/kupfer/plugin/templates.py
+++ b/kupfer/plugin/templates.py
@@ -80,7 +80,8 @@ class CreateNewDocument (Action):
 	def get_icon_name(self):
 		return "document-new"
 
-CreateDocumentIn = helplib.reverse_action(CreateNewDocument, rank=10)
+class CreateDocumentIn(helplib.reverse_action(CreateNewDocument)):
+	rank_adjust = 10
 
 class TemplatesSource (Source, FilesystemWatchMixin):
 	def __init__(self):



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