[kupfer/next] core: Only call get_plugin_infos once in get_plugin_desc



commit efdc4aa947a813b52e3fb00245b2256be883e8cd
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Sat Jan 23 13:47:18 2010 +0100

    core: Only call get_plugin_infos once in get_plugin_desc

 kupfer/core/plugins.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/kupfer/core/plugins.py b/kupfer/core/plugins.py
index 01ff5cc..47db66d 100644
--- a/kupfer/core/plugins.py
+++ b/kupfer/core/plugins.py
@@ -95,7 +95,7 @@ def get_plugin_desc():
 	maxlen = 78
 	left_margin = 2 + idlen + 1 + verlen + 1
 	desc = []
-	for rec in get_plugin_info():
+	for rec in infos:
 		# Wrap the description and align continued lines
 		wrapped = textwrap.wrap(rec["description"], maxlen - left_margin)
 		description = (u"\n" + u" "*left_margin).join(wrapped)



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