changeset 73:c827091b3427

unveil commands
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Fri, 06 Jun 2008 21:33:10 +0200
parents 86d3fcf5c787
children ad51b86d7bc1
files data/plugin/action/arnica_slides.py data/plugin/parser/text_x_arnica.py
diffstat 2 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/action/arnica_slides.py	Fri Jun 06 21:06:55 2008 +0200
+++ b/data/plugin/action/arnica_slides.py	Fri Jun 06 21:33:10 2008 +0200
@@ -441,7 +441,7 @@
         target = request.form.get('target', [''])[0]
 
         # View Slides
-        if command == 'VS':
+        if command == 'slide_show':
             self.slide_show(pagename)
         # view sends a cached attachment (thumbnail or webnail) to the browser
         elif command == 'view':
@@ -469,7 +469,7 @@
             infile = os.path.join(attachment_path, target)
 
             # removes attachment (moves to bak)
-            if command == 'RM':
+            if command == 'delete':
                 if os.path.exists(infile + '.bak'):
                     os.unlink("%(file)s.bak" % {"file": infile})
                 filesys.rename(infile, "%(file)s.bak" % {"file": infile})
@@ -480,12 +480,12 @@
                 msg = _('%(target)s deleted, backup in place' % {
                       'target': target})
             # rotate left
-            elif command == 'RL':
+            elif command == 'rotate_left':
                 image_rotate(infile, webf, thumbf, 90, img_type)
                 msg = _('%(target)s rotated to left 90 degrees' % {'target': target})
 
             # rotate right
-            elif command == 'RR':
+            elif command == 'rotate_right':
                 image_rotate(infile, webf, thumbf, 270, img_type)
                 msg = _('%(target)s rotated to right 90 degrees' % {'target': target})
 
--- a/data/plugin/parser/text_x_arnica.py	Fri Jun 06 21:06:55 2008 +0200
+++ b/data/plugin/parser/text_x_arnica.py	Fri Jun 06 21:33:10 2008 +0200
@@ -139,7 +139,7 @@
         <form action="%(baseurl)s/%(pagename)s" method="POST" enctype="multipart/form-data">
           <td%(style)s>
             <input type="hidden" name="action" value="arnica_slides">
-            <input type="hidden" name="do" value="RL">
+            <input type="hidden" name="do" value="rotate_left">
             <input type="hidden" name="target" value="%(this_target)s">
             <input type="image" value="submit" src="%(htdocs)s/common/arnica/arnica_to_right.png" title="rotate to left">
           </td>
@@ -147,7 +147,7 @@
         <form action="%(baseurl)s/%(pagename)s" method="POST" enctype="multipart/form-data">
           <td%(style)s>
             <input type="hidden" name="action" value="arnica_slides">
-            <input type="hidden" name="do" value="RR">
+            <input type="hidden" name="do" value="rotate_right">
             <input type="hidden" name="target" value="%(this_target)s">
             <input type="image"  value="submit" src="%(htdocs)s/common/arnica/arnica_to_left.png" title="rotate to right" >
           </td>
@@ -155,7 +155,7 @@
         <form action="%(baseurl)s/%(pagename)s" method="POST" enctype="multipart/form-data">
           <td%(style)s>
             <input type="hidden" name="action" value="arnica_slides">
-            <input type="hidden" name="do" value="RM">
+            <input type="hidden" name="do" value="delete">
             <input type="hidden" name="target" value="%(this_target)s">
             <input type="image" value="submit" src="%(htdocs)s/common/arnica/arnica_to_bak.png" title="move to bak" >
            </td>
@@ -186,7 +186,7 @@
                     <form action="%(baseurl)s/%(pagename)s" method="POST" enctype="multipart/form-data">
                         <td%(style)s>
                             <input type="hidden" name="action" value="arnica_slides">
-                            <input type="hidden" name="do" value="VS">
+                            <input type="hidden" name="do" value="slide_show">
                             <input type="hidden" name="alias" value='%(description)s'>
                             <input type="hidden" name="target" value='%(target)s'>
                             <input type="hidden" name="pagename" value='%(pagename)s'>
@@ -251,7 +251,7 @@
         text = '''
         <form action="%(baseurl)s/%(pagename)s" method="POST" enctype="multipart/form-data">
                 <input type="hidden" name="action" value="arnica_slides">
-                <input type="hidden" name="do" value="VS">
+                <input type="hidden" name="do" value="slide_show">
                 <input type="hidden" name="alias" value='%(description)s'>
                 <input type="hidden" name="exif_date" value='%(exif_date)s'>
                 <input type="hidden" name="target" value='%(target)s'>
@@ -329,7 +329,7 @@
             %(tdstyle)s>
                 %(title)s
                 <input type="hidden" name="action" value="arnica_slides">
-                <input type="hidden" name="do" value="VS">
+                <input type="hidden" name="do" value="slide_show">
                 <input type="hidden" name="alias" value='%(description)s'>
                 <input type="hidden" name="exif_date" value='%(exif_date)s'>
                 <input type="hidden" name="target" value='%(target)s'>