<<O>>  Cambios es la página BatchUploadPlugin (r1.4 - 06 Jan 2005 - RicardoDeLosSantos)

BatchUploadPlugin

Changed:
<
<
  • El propósito de este plugin es permitir subir varios ficheros simultáneamente a una página TWiki, comprimiéndolos en un archivo .zip que se extrae automáticamente al adjuntarlo. En este sitio TWiki hemos optado por retocar el plugin original, de forma que sólo se produce la extracción si el nombre del archivo .zip comienza por extraer
>
>
  • El propósito de este plugin es permitir subir varios ficheros simultáneamente a una página TWiki, comprimiéndolos en un archivo zip que se extrae automáticamente al adjuntarlo. En este sitio TWiki hemos optado por retocar el plugin original, de forma que sólo se produce la extracción si el nombre del archivo zip comienza por ext_, extraer o unzip_

  • La versión modificada del plugin se ecuentra en el fichero BatchUploadPlugin_dif.tar que se puede descargar desde el enlace situado al final de esta página. Se instala descomprimiendo el archivo y sobreescribiendo una instalación preexistente del plugin original.
  • El plugin original y la documentación del mismo se encuentran en TWiki:Plugins/BatchUploadPlugin
  • Configuración
Changed:
<
<
    • Set DEBUG = 0 (modo debug desactivado)
>
>
    • Set DEBUG = 0

    • Set ENABLED = 1 (plugin activo)

Información del plugin

Line: 14 to 14

Plugin Author: TWiki:Main.MartinCleaver
Plugin Version: 31 Oct 2004 (V1.000)
Change History: <!-- versions below in reverse order --> 
Changed:
<
<
05 Jan 2005 RicardoDeLosSantos - Retoque para que el plugin sólo se aplique a los archivos .zip cuyo nombre empieza por extraer
>
>
06 Jan 2005 RicardoDeLosSantos - Retoque para que el plugin sólo se aplique a los archivos zip cuyo nombre empieza por ext_, extraer o unzip_

31 Oct 2004 TWiki:Main.MartinCleaver - initial version as plugin
09 Apr 2004 TWiki:Main.DiabJerius
17 Nov 2003 TWiki:Main.JohannesMartin
Line: 39 to 39

<!-- Do not attempt to edit this topic; it is auto-generated. Please add comments/questions/remarks to the Dev topic instead. -->
Changed:
<
<
META FILEATTACHMENT BatchUploadPlugin_dif.tar attr="" comment="Cambios en el plugin original" date="1104946737" path="BatchUploadPlugin_dif.tar" size="30720" user="RicardoDeLosSantos" version="1.1"
>
>
META FILEATTACHMENT BatchUploadPlugin_dif.tar attr="" comment="Cambios en el plugin original" date="1105012100" path="BatchUploadPlugin_dif.tar" size="40960" user="RicardoDeLosSantos" version="1.2"
 <<O>>  Cambios es la página BatchUploadPlugin (r1.3 - 05 Jan 2005 - RicardoDeLosSantos)

BatchUploadPlugin

  • El propósito de este plugin es permitir subir varios ficheros simultáneamente a una página TWiki, comprimiéndolos en un archivo .zip que se extrae automáticamente al adjuntarlo. En este sitio TWiki hemos optado por retocar el plugin original, de forma que sólo se produce la extracción si el nombre del archivo .zip comienza por extraer
Line: 33 to 33

Related Topics: TWikiPreferences, TWikiPlugins

-- TWiki:Main/MartinCleaver - 31 Oct 2004

Changed:
<
<
>
>

<!-- Do not attempt to edit this topic; it is auto-generated. Please add comments/questions/remarks to the Dev topic instead. -->

META FILEATTACHMENT BatchUploadPlugin_dif.tar attr="" comment="Cambios en el plugin original" date="1104946737" path="BatchUploadPlugin_dif.tar" size="30720" user="RicardoDeLosSantos" version="1.1"
 <<O>>  Cambios es la página BatchUploadPlugin (r1.2 - 05 Jan 2005 - RicardoDeLosSantos)

BatchUploadPlugin

Changed:
<
<
This plugin intercepts the TWiki:Codev.BeforeAttachmentSaveHandler to process a zip file, attaching each of the individual files to the designated topic instead of the zip file.
>
>
  • El propósito de este plugin es permitir subir varios ficheros simultáneamente a una página TWiki, comprimiéndolos en un archivo .zip que se extrae automáticamente al adjuntarlo. En este sitio TWiki hemos optado por retocar el plugin original, de forma que sólo se produce la extracción si el nombre del archivo .zip comienza por extraer
  • La versión modificada del plugin se ecuentra en el fichero BatchUploadPlugin_dif.tar que se puede descargar desde el enlace situado al final de esta página. Se instala descomprimiendo el archivo y sobreescribiendo una instalación preexistente del plugin original.
  • El plugin original y la documentación del mismo se encuentran en TWiki:Plugins/BatchUploadPlugin
  • Configuración

Changed:
<
<

Syntax Rules

  • None - it applies as long as it is enabled. (Off by default)

Examples

    • N/A

Plugin Settings

Plugin settings are stored as preferences variables. To reference a plugin setting write %<plugin>_<setting>%, i.e. Link =ExternalSite:Page text to external sites based on aliases defined in the InterWikis topic.=

  • Debug plugin: (See output in data/debug.txt)
    • Set DEBUG = 0

  • If disabled, does nothing.
    • Set ENABLED = 1

Plugin Installation Instructions

Note: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the server where TWiki is running.

  • Download the ZIP file from the Plugin web (see below)
  • Unzip BatchUploadPlugin.zip in your twiki installation directory. Content:
    File: Description:
    data/TWiki/BatchUploadPlugin.txt Plugin topic
    data/TWiki/BatchUploadPlugin.txt,v Plugin topic repository
    lib/TWiki/Plugins/BatchUploadPlugin.pm Plugin Perl module
  • Flip ENABLED switch to 1
  • Test if the installation was successful:
    • try uploading a zip file

Caveats

    • Required support (add an attachment) not in TWiki::Func, so I call TWiki::UI::Upload
    • UPLOADZIPLIMIT, UPLOADNOSPACES, UPLOADLOWERCASE features deleted - belong in upload
    • PNG support deleted (should be in TWiki::UI::Upload)
    • No longer uses oops templates (plugins can't use them)
    • Dies instead of finishes, because otherwise it can't veto zip attach
    • Doesn't carry through the hide or link flags
    • Comment field on extracted files is not customisable

Further Development

    • Put back deleted functionality.
    • TWiki:Codev.BeforeAttachmentSaveHandler needs veto capability
    • Ugly die needs replacing
    • Test what happens if you upload zips of zips
    • There is a method - currently called findTopicForPicture which is disabled by default - this can be used to change the destination topic for each archive element. We need a TWiki:Codev.ExtensionInteractionPoint to allow plugins to have their functionality overridden.

Plugin Info

>
>

Información del plugin


Plugin Author: TWiki:Main.MartinCleaver
Plugin Version: 31 Oct 2004 (V1.000)
Change History: <!-- versions below in reverse order --> 
Added:
>
>
05 Jan 2005 RicardoDeLosSantos - Retoque para que el plugin sólo se aplique a los archivos .zip cuyo nombre empieza por extraer

31 Oct 2004 TWiki:Main.MartinCleaver - initial version as plugin
09 Apr 2004 TWiki:Main.DiabJerius
17 Nov 2003 TWiki:Main.JohannesMartin
Line: 81 to 36

<!-- Do not attempt to edit this topic; it is auto-generated. Please add comments/questions/remarks to the Dev topic instead. -->

Added:
>
>
META FILEATTACHMENT BatchUploadPlugin_dif.tar attr="" comment="Cambios en el plugin original" date="1104946737" path="BatchUploadPlugin_dif.tar" size="30720" user="RicardoDeLosSantos" version="1.1"
 <<O>>  Cambios es la página BatchUploadPlugin (r1.1 - 05 Jan 2005 - RicardoDeLosSantos)
Line: 1 to 1
Added:
>
>

BatchUploadPlugin

This plugin intercepts the TWiki:Codev.BeforeAttachmentSaveHandler to process a zip file, attaching each of the individual files to the designated topic instead of the zip file.

Syntax Rules

  • None - it applies as long as it is enabled. (Off by default)

Examples

    • N/A

Plugin Settings

Plugin settings are stored as preferences variables. To reference a plugin setting write %<plugin>_<setting>%, i.e. Link =ExternalSite:Page text to external sites based on aliases defined in the InterWikis topic.=

  • Debug plugin: (See output in data/debug.txt)
    • Set DEBUG = 0

  • If disabled, does nothing.
    • Set ENABLED = 1

Plugin Installation Instructions

Note: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the server where TWiki is running.

  • Download the ZIP file from the Plugin web (see below)
  • Unzip BatchUploadPlugin.zip in your twiki installation directory. Content:
    File: Description:
    data/TWiki/BatchUploadPlugin.txt Plugin topic
    data/TWiki/BatchUploadPlugin.txt,v Plugin topic repository
    lib/TWiki/Plugins/BatchUploadPlugin.pm Plugin Perl module
  • Flip ENABLED switch to 1
  • Test if the installation was successful:
    • try uploading a zip file

Caveats

    • Required support (add an attachment) not in TWiki::Func, so I call TWiki::UI::Upload
    • UPLOADZIPLIMIT, UPLOADNOSPACES, UPLOADLOWERCASE features deleted - belong in upload
    • PNG support deleted (should be in TWiki::UI::Upload)
    • No longer uses oops templates (plugins can't use them)
    • Dies instead of finishes, because otherwise it can't veto zip attach
    • Doesn't carry through the hide or link flags
    • Comment field on extracted files is not customisable

Further Development

    • Put back deleted functionality.
    • TWiki:Codev.BeforeAttachmentSaveHandler needs veto capability
    • Ugly die needs replacing
    • Test what happens if you upload zips of zips
    • There is a method - currently called findTopicForPicture which is disabled by default - this can be used to change the destination topic for each archive element. We need a TWiki:Codev.ExtensionInteractionPoint to allow plugins to have their functionality overridden.

Plugin Info

Plugin Author: TWiki:Main.MartinCleaver
Plugin Version: 31 Oct 2004 (V1.000)
Change History: <!-- versions below in reverse order --> 
31 Oct 2004 TWiki:Main.MartinCleaver - initial version as plugin
09 Apr 2004 TWiki:Main.DiabJerius
17 Nov 2003 TWiki:Main.JohannesMartin
20 Mar 2003 TWiki:Main.RonKellam
16 Aug 2002 TWiki:Main.ThomasWeigert
14 Jan 2002 TWiki:Main.RyanFreebern
30 Oct 2001 TWiki:Main.VitoMiliano
TWiki Dependency: $TWiki::Plugins::VERSION 1.024
CPAN Dependencies: none
Other Dependencies: CPAN:Archive::Zip
Perl Version: 5.005
TWiki:Plugins/Benchmark: GoodStyle nn%, FormattedSearch nn%, BatchUploadPlugin nn%
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/BatchUploadPlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/BatchUploadPluginDev

Related Topics: TWikiPreferences, TWikiPlugins

-- TWiki:Main/MartinCleaver - 31 Oct 2004

<!-- Do not attempt to edit this topic; it is auto-generated. Please add comments/questions/remarks to the Dev topic instead. -->

Revision r1.1 - 05 Jan 2005 - 13:31 - RicardoDeLosSantos
Revision r1.4 - 06 Jan 2005 - 11:12 - RicardoDeLosSantos