r8 - 22 Mar 2005 - 09:59:24 - PeterThoenyYou are here: TWiki >  Plugins Web > DistributionContrib
Tags:
build 1 Add my vote for this tag, compatibility 1 Add my vote for this tag, , create new tag

Distribution Contrib Package

Provides access to TWiki Distribution meta information

Summary of Contents

Distribution Contrib

A module to provide programmatic access to: 1 Conversion between release identifiers (e.g. %WIKINAME -> TWiki2002...) 2 Fetching of individual files of any given distribution name (excluding zip files)

Settings

Settings are stored as preferences variables. To reference a setting write %<plugin>_<setting>%, e.g. %JSCALENDARCONTRIB_STUB%

  • One line description:
    • Set SHORTDESCRIPTION = Provides access to TWiki Distribution meta information

  • Name of the perl package
    • Set STUB = TWiki::Contrib::DistributionContrib

To Do

  1. The settings in Config.pm should be made into settings on this page.

Detailed Documentation

sub wikiVersionToDistributionName($wikiVersion)

  • turns '01 Feb 2003' => "TWiki20030201"

sub releaseTopicToDistributionName($releaseTopic)

  • TWikiBetaRelease2004x07x30? => TWiki20040730beta
  • TWikiRelease20030201? => TWiki20030201

sub fetchDistributionFile()

In: | $file | name of filename, e.g. bin/view | | $distribution | name of distribution, e.g. TWiki20020201 | | $localFileSuffix | for the downloaded file, any suffix to be added to the filename |

Out: | $location | where the local copy of the file has been placed |

NB. the localFileSuffix is a way to allow multiple downloaded files to coexist at the same time. As the FileFetcher? does not provide a way to delete the files (and TWiki does not automatically refresh its attachment table on the arrival of new attachments), I recommend you use unique names scarcely. e.g. keep using the same localFileSuffix "1", "2"

Installation Instructions

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

  • Download the ZIP file from the Plugin web (see below)
  • Unzip DistributionContrib.zip in your twiki installation directory. Content:
    File: Description:
    ./lib/TWiki/Contrib/DistributionContrib/TWikiReleaseNames.pm  
    ./lib/TWiki/Contrib/DistributionContrib/Config.pm  
    ./lib/TWiki/Contrib/DistributionContrib/FileFetcher.pm  
    ./lib/TWiki/Contrib/DistributionContrib/build.pl  
    ./.project  
    ./data/TWiki/DistributionContrib.txt  
    ./pub/TWiki/DistributionContrib/  
    DistributionContrib_installer.pl Install script

  • Test if the installation was successful:
    • enter samples here

Contrib Info

Author: TWiki:Main.MartinCleaver
Copyright ©: 2004, Martin Cleaver, All Rights Reserved
License: GPL (GNU General Public License)
Dependencies:
NameVersionDescription
TWiki::Contrib::BuildContrib>0.1Build Environment
LWP>5.0Used for downloads
Version: 0.3
Change History:  
23 Aug 2004: Initial version
Home: http://TWiki.org/cgi-bin/view/Plugins/DistributionContrib
Feedback: http://TWiki.org/cgi-bin/view/Plugins/DistributionContribDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/DistributionContribAppraisal

Related Topics: TWikiPreferences, TWikiPlugins

-- TWiki:Main.MartinCleaver - 23 Aug 2004

Topic attachments
I Attachment Action Size Date Who Comment
zipzip DistributionContrib.zip manage 9.6 K 16 Oct 2004 - 16:37 MartinCleaver Unzip in the root directory of your TWiki installation
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r8 < r7 < r6 < r5 < r4 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo