changeset 52:02f6a1e3acc3

text_x_arnica: help keyword removed
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Wed, 04 Jun 2008 13:23:41 +0200
parents 37425f191cc5
children 64c2bb702530
files data/plugin/parser/text_x_arnica.py
diffstat 1 files changed, 2 insertions(+), 25 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/parser/text_x_arnica.py	Wed Jun 04 13:22:31 2008 +0200
+++ b/data/plugin/parser/text_x_arnica.py	Wed Jun 04 13:23:41 2008 +0200
@@ -43,7 +43,7 @@
                  album=False, album_name=u'album', front_image=u'',
                  border_thick=int(1),  renew=False,
                  thumbnail_width=int(128), webnail_width=int(640),
-                 text_width=int(128), help=False):
+                 text_width=int(128)):
     """ macro to initialize all default parameters for arnica
 
     @param target_page: page to read attachments from
@@ -75,7 +75,6 @@
     @param thumbnail_width: default width of thumbnails is 128
     @param webnail_width: default width of webnail is 640
     @param text_width: default width of text is 140
-    @param help: if set you get a brief description of the parameters
     """
     from inspect import getargspec
     args, varargs, varkw, defaults = getargspec(macro_arnica)
@@ -89,7 +88,7 @@
                 album, album_name, front_image,
                 border_thick, renew,
                 thumbnail_width, webnail_width,
-                text_width, help)
+                text_width)
 
     return (args[1:], defaults)
 
@@ -455,25 +454,6 @@
             'image': image,
         }
 
-    def print_help(self):
-        """ print help """
-        self.request.write('''
-<br>
-{{{<br>
-#!arnica   [target_page=target_page], <br>
-           [columns=columns],[filter=filter],[mode=mode],<br>
-           [show_text=show_text],[show_date=show_date], [show_tools=show_tools],<br>
-           [sort_by_name=sort_by_name],[sort_by_date=sort_by_date],[sort_by_alias=sort_by_alias]<br>
-           [reverse_sort=reverse_sort],<br>
-           [only_items=only_items],[template_itemlist=template_itemlist],<br>
-           [album=album],[album_name=album_name],[front_image=front_image],<br>
-           [thumbnail_width=thumbnail_width],[webnail_width=webnail_width],[text_width=text_width],<br>
-           [image_for_webnail=image_for_webnail],<br>
-           [border_thick=border_thick],[renew=renew],[help=help]<br>
- * [[image1.jpg|alias]] <br>
- * [[image2.jpg|alias]] <br>
-}}}''')
-
     def select_files(self, formatter):
         """ select files """
 
@@ -573,9 +553,6 @@
         """ does the format """
 
         _ = self._
-        if self.help:
-            self.print_help()
-            return
 
         if self.target_page and (not self.request.user.may.read(self.target_page) or not Page(self.request, self.target_page).exists()):
             self.request.write(_("Page %(pagename)s does not exists or you don't have enough rights." % {"pagename": self.target_page}))