changeset 58:4381f580a434

text_x_arnica.macro_arnica: simplified
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Wed, 04 Jun 2008 14:49:58 +0200
parents 7f56d8a670da
children 3406d23a01f2
files data/plugin/parser/text_x_arnica.py
diffstat 1 files changed, 12 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/parser/text_x_arnica.py	Wed Jun 04 14:41:57 2008 +0200
+++ b/data/plugin/parser/text_x_arnica.py	Wed Jun 04 14:49:58 2008 +0200
@@ -77,20 +77,20 @@
     @param text_width: default width of text is 140
     """
     from inspect import getargspec
-    args, varargs, varkw, defaults = getargspec(macro_arnica)
+    args = getargspec(macro_arnica)[0]
     # ToDo find the proper method do get the real values without entering the list
-    defaults = (target_page, columns, file_regex,
-                image_for_webnail,
-                show_text, show_date, show_tools,
-                sort_by_date, sort_by_name, sort_by_alias,
-                reverse_sort,
-                mode, only_items, template_itemlist,
-                album, album_name, front_image,
-                renew,
-                thumbnail_width, webnail_width,
-                text_width)
+    values = (target_page, columns, file_regex,
+              image_for_webnail,
+              show_text, show_date, show_tools,
+              sort_by_date, sort_by_name, sort_by_alias,
+              reverse_sort,
+              mode, only_items, template_itemlist,
+              album, album_name, front_image,
+              renew,
+              thumbnail_width, webnail_width,
+              text_width)
 
-    return (args[1:], defaults)
+    return (args[1:], values)
 
 # ToDo may be move to wikiutil
 def get_exif_info(file_name):