Tags:
information_design1Add my vote for this tag create new tag
, view all tags

GuidPlugin

This plugin allows for the creation of Globally/Unique Identifiers (GUID/UUID). It uses the Perl/CPAN Data::UUID module (http://search.cpan.org/dist/Data-UUID/UUID.pm) to generate the data, and is based strongly on the similar module by TWiki:Main.MichaelSparks.

(Note: I've edited this plugin to get it running under the Dakar VM, but I'm not a plugin expert so I can't claim the functionality is identical to the original version. That said, it works for me in the way I expect so it should for you, too. -TWiki:Main.NeilRichardson)

Syntax Rules

You Type You Get Comment
%GUID% %GUID% default is string type
%GUID{type="str"}% %GUID{type="str"}% string representation
%GUID{type="bin"}% %GUID{type="bin"}% binary representation
%GUID{type="hex"}% %GUID{type="hex"}% hex
%GUID{type="b64"}% %GUID{type="b64"}% base64

GuidPlugin Global Settings

Plugin settings are stored as preferences variables. To reference a plugin setting write %<plugin>_<setting>%, for example, %GUID_SHORTDESCRIPTION%

  • One line description, shown in the TextFormattingRules topic:
  • Set SHORTDESCRIPTION = Generates GUID unique ids

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

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 below
  • Put them as follows (if you extract into the root TWiki folder, this should happen automatically):
    File: Description:
    data/TWiki/GuidPlugin.txt Plugin topic
    data/TWiki/GuidPlugin.txt,v Plugin topic repository
    lib/TWiki/Plugins/GuidPlugin.pm Plugin Perl module
  • Test if the plugin is correctly installed:
    • If working correctly, the table above will look something like the following hard-coded example (although the exact values will change with every page view):
      You Type You Get Comment
      %GuID% CEAEE384-BABE-11DB-83F2-133F06AD2F55 default is string type
      %GUID{type="str"}% CEAEF78E-BABE-11DB-83F2-133F06AD2F55 string representation
      %GUID{type="bin"}% [random non-alphanumeric characters here] binary representation
      %GUID{type="hex"}% 0xCEAF26E6BABE11DB83F2133F06AD2F55 hex
      %GUID{type="b64"}% Vjmvzr662xGD8hM/Bq0vVQ== base64

Plugin Info

Plugin Author: TWiki:Main.BruceDillahunty
Plugin Version: 21 Mar 2007 (v1.002)
Change History:  
21 Mar 2007: Minor corrections to download instructions; updated "Plugin Info" to match TWiki documentation practices (TWiki:Main.NeilRichardson)
12 Feb 2007: Updates to work under Dakar in VM; Updated documentation examples to be consistent with each other (TWiki:Main.NeilRichardson)
25 Feb 2004: Initial version
CPAN Dependencies: Data::UUID
Other Dependencies: none
Perl Version: 5.005
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/GuidPlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/GuidPluginDev

Related Topics: TWikiPreferences, TWikiPlugins

-- TWiki:Main.NeilRichardson - 21 Mar 2007

Topic attachments
I Attachment Action Size Date Who Comment
zipzip GuidPlugin.zip manage 6.9 K 26 Apr 2007 - 19:19 NeilRichardson Updated to work under Dakar; fixed bug init bug & documentation typos
Topic revision: r10 - 26 Apr 2007 - 19:19:10 - NeilRichardson
Plugins.GuidPlugin moved from Codev.GuidPlugin on 25 Feb 2004 - 06:54 by PeterThoeny - put it back
 
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