From: <de...@de...> - 2010-08-30 08:19:31
|
Author: PeterThoeny Date: 2010-08-30 03:19:21 -0500 (Mon, 30 Aug 2010) New Revision: 19407 Trac url: http://develop.twiki.org/trac/changeset/19407 Modified: twiki/branches/TWikiRelease05x00/BugzillaLinkPlugin/data/TWiki/BugzillaLinkPlugin.txt twiki/branches/TWikiRelease05x00/BugzillaLinkPlugin/lib/TWiki/Plugins/BugzillaLinkPlugin.pm Log: Item6530: Doc improvements; changed TWIKIWEB to SYSTEMWEB Modified: twiki/branches/TWikiRelease05x00/BugzillaLinkPlugin/data/TWiki/BugzillaLinkPlugin.txt =================================================================== --- twiki/branches/TWikiRelease05x00/BugzillaLinkPlugin/data/TWiki/BugzillaLinkPlugin.txt 2010-08-30 08:18:21 UTC (rev 19406) +++ twiki/branches/TWikiRelease05x00/BugzillaLinkPlugin/data/TWiki/BugzillaLinkPlugin.txt 2010-08-30 08:19:21 UTC (rev 19407) @@ -1,18 +1,28 @@ -%META:TOPICINFO{author="joant" date="1128374233" format="1.0" version="1.3"}% +%META:TOPICINFO{author="TWikiContributor" date="1283155259" format="1.1" version="$Rev$"}% ---+ <nop>%TOPIC% +<!-- + Contributions to this plugin are appreciated. Please update the plugin page at + http://twiki.org/cgi-bin/view/Plugins/BugzillaLinkPlugin or provide feedback at + http://twiki.org/cgi-bin/view/Plugins/BugzillaLinkPluginDev. + If you are a TWiki contributor please update the plugin in the SVN repository. +--> +%SHORTDESCRIPTION% +<sticky><div style="float:right; background-color:#eeeeee; margin:0 0 20px 20px; padding: 0 10px 0 10px"> +%TOC{title="Page contents"}% +</div></sticky> +---++ Introduction + This plugin provides shorthand for linking to [[http://www.bugzilla.org/][Bugzilla]] bugs without specifying a URL in longhand. It is most useful if you are using a local copy of Bugzilla for issue/ticket/bug tracking, and want to reference it from your topic. -%TOC% - ---++Features - * Short hand references for: - * Individual bugs - * Lists of bugs assigned to a given milestone (or its beta) - * Lists of bugs matching one or more keywords - * Lists of the specified user's assigned bugs - * URLs and text prompts are fully configurable + * Short hand references for: + * Individual bugs + * Lists of bugs assigned to a given milestone (or its beta) + * Lists of bugs matching one or more keywords + * Lists of the specified user's assigned bugs + * URLs and text prompts are fully configurable ---++ Syntax Rules @@ -32,57 +42,58 @@ |%<nop>BUGLISTKEY{crash+fonts}%|%ATTACHURL%/bug_small.png [[http://bugzilla.mozilla.org/buglist.cgi?keywords_type=allwords&keywords=crash+fonts][Buglist for keyword(s) "crash+fonts"]]|%BUGLISTKEY{crash+fonts}%| |%<nop>MYBUGS{sh...@mo...}%|%ATTACHURL%/bug_small.png [[http://bugzilla.mozilla.org/buglist.cgi?bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=sh...@mo...&emailtype1=exact&emailassigned_to1=1&emailreporter1=1][Buglist for sh...@mo...]]|%MYBUGS{sh...@mo...}%| - ---++ <nop>%TOPIC% Settings Plugin settings are stored as preferences variables. To reference a plugin setting write ==%<nop><plugin>_<setting>%==, i.e. ==%<nop>RENDERPLUGIN_SHORTDESCRIPTION%== - * One line description, is shown in the %TWIKIWEB%.TextFormattingRules topic: - * Set SHORTDESCRIPTION = Link to Bugzilla bugs using shorthand references + * One line description, is shown in the %SYSTEMWEB%.TextFormattingRules topic: + * Set SHORTDESCRIPTION = Link to Bugzilla bugs using shorthand references - * Set DEBUG to 1 to get debug messages in =data/debug.txt=. Default: =0= - * Set DEBUG = 0 + * Set DEBUG to 1 to get debug messages in =data/debug.txt=. Default: =0= + * Set DEBUG = 0 - * URL references to your Bugzilla installation and to the bug image - * Set BUGURL = http://bugzilla.mozilla.org/show_bug.cgi?id= - * Set BUGLISTURL = http://bugzilla.mozilla.org/buglist.cgi? - * Set BUGIMGURL = %ATTACHURL%/bug_small.png + * URL references to your Bugzilla installation and to the bug image + * Set BUGURL = http://bugzilla.mozilla.org/show_bug.cgi?id= + * Set BUGLISTURL = http://bugzilla.mozilla.org/buglist.cgi? + * Set BUGIMGURL = %ATTACHURL%/bug_small.png - * Text references for automatic substitution - * Set BUGTEXT = Bug # - * Set MILESTONEBUGLISTTEXT = Buglist for milestone - * Set KEYWORDSBUGLISTTEXT = Buglist for keyword(s) - * Set MYBUGLISTTEXT = Buglist for user + * Text references for automatic substitution + * Set BUGTEXT = Bug # + * Set MILESTONEBUGLISTTEXT = Buglist for milestone + * Set KEYWORDSBUGLISTTEXT = Buglist for keyword(s) + * Set MYBUGLISTTEXT = Buglist for user ---++ Limitations and Known Issues - * Many other sorts of linking is possible, but not yet implemented. - * This plugin could be refactored to work with many other sorts of bug tracking software, not limited to but including: - * RT - * Mantis - * DDTS (see Plugins.AutolinkDDTSPlugin) + * Many other sorts of linking is possible, but not yet implemented. + * This plugin could be refactored to work with many other sorts of bug tracking software, not limited to but including: + * RT + * Mantis + * DDTS (see TWiki:Plugins.AutolinkDDTSPlugin) ---++ 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 ==%TOPIC%.zip== in your twiki installation directory. Content: + * Download the ZIP file from the Plugin web (see below) + * Unzip ==%TOPIC%.zip== in your twiki installation directory. Content: | *File:* | *Description:* | | ==data/TWiki/%TOPIC%.txt== | Plugin topic | - | ==data/TWiki/%TOPIC%.txt,v== | Plugin topic repository | | ==lib/TWiki/Plugins/%TOPIC%.pm== | Plugin Perl module | | ==pub/TWiki/%TOPIC%/*.gif== | Image files for themes | | ==pub/TWiki/%TOPIC%/*.png== | Image files for themes | - * (Dakar) Visit =configure= in your TWiki installation, and enable the plugin in the {Plugins} section. - * Test if the installation was successful: - * See if the above example works + * Visit =configure= in your TWiki installation, and enable the plugin in the {Plugins} section. + * Test if the installation was successful: + * See if the above example works ---++ Plugin Info | Plugin Author: | TWiki:Main.FlorianGnaegi | -| Plugin Version: | 03 Oct 2005 (V1.300) | +| Copyright: | © 2002 TWiki:Main.FlorianGnaegi; %BR% © 2008-2010, TWiki:TWiki.TWikiContributor | +| License: | [[http://www.gnu.org/licenses/gpl.html][GPL (Gnu General Public License)]] | +| Plugin Version: | 2010-08-30 (V1.301) | | Change History: | <!-- versions below in reverse order --> | +| 2010-08-30: | TWikibug:Item6530: Doc improvements; changed TWIKIWEB to SYSTEMWEB -- TWiki:Main.PeterThoeny | | 03 Oct 2005 | Fixes for Dakar, added BUGLISTKEY function, refactored Settings (TWiki:Main.JoanTouzet) | | 08 Jul 2003 | Added MYBUGS function (TWiki:Main.SteveKostecke), dealing with whitespace (TWiki:Main.AlanShields) | | 19 Aug 2002 | Added BUGLIST function, renamed to BugzillaLinkPlugin (TWiki:Main.AnthonPang ?) | @@ -94,11 +105,9 @@ | Feedback: | http://TWiki.org/cgi-bin/view/Plugins/%TOPIC%Dev | | Appraisal: | http://TWiki.org/cgi-bin/view/Plugins/%TOPIC%Appraisal | -__Related Topics:__ %TWIKIWEB%.TWikiPreferences, %TWIKIWEB%.TWikiPlugins +__Related Topics:__ %SYSTEMWEB%.TWikiPreferences, %SYSTEMWEB%.TWikiPlugins --- TWiki:Main.JoanTouzet - 03 October 2005 <br> - -%META:FILEATTACHMENT{name="bug.gif" attr="" comment="GIF Bug large" date="1029409171" path="/home/gnaegi/bug.gif" size="166" user="FlorianGnaegi" version="1.1"}% -%META:FILEATTACHMENT{name="bug_small.gif" attr="" comment="GIF Bug small" date="1029416770" path="/home/gnaegi/bug_small.gif" size="885" user="FlorianGnaegi" version="1.1"}% -%META:FILEATTACHMENT{name="bug_small.png" attr="" comment="PNG Bug transparent" date="1029409171" path="/home/gnaegi/bug.gif" size="166" user="FlorianGnaegi" version="1.0"}% -%META:FILEATTACHMENT{name="bug_small_white.png" attr="" comment="PNG Bug, white background" date="1029409171" path="/home/gnaegi/bug.gif" size="166" user="FlorianGnaegi" version="1.0"}% +%META:FILEATTACHMENT{name="bug.gif" attr="h" comment="GIF Bug large" date="1029409171" path="/home/gnaegi/bug.gif" size="166" user="TWikiContributor" version="1"}% +%META:FILEATTACHMENT{name="bug_small.gif" attr="h" comment="GIF Bug small" date="1029416770" path="/home/gnaegi/bug_small.gif" size="885" user="TWikiContributor" version="1"}% +%META:FILEATTACHMENT{name="bug_small.png" attr="h" comment="PNG Bug transparent" date="1029409171" path="/home/gnaegi/bug.gif" size="166" user="TWikiContributor" version="1"}% +%META:FILEATTACHMENT{name="bug_small_white.png" attr="h" comment="PNG Bug, white background" date="1029409171" path="/home/gnaegi/bug.gif" size="166" user="TWikiContributor" version="1"}% Modified: twiki/branches/TWikiRelease05x00/BugzillaLinkPlugin/lib/TWiki/Plugins/BugzillaLinkPlugin.pm =================================================================== --- twiki/branches/TWikiRelease05x00/BugzillaLinkPlugin/lib/TWiki/Plugins/BugzillaLinkPlugin.pm 2010-08-30 08:18:21 UTC (rev 19406) +++ twiki/branches/TWikiRelease05x00/BugzillaLinkPlugin/lib/TWiki/Plugins/BugzillaLinkPlugin.pm 2010-08-30 08:19:21 UTC (rev 19407) @@ -1,6 +1,5 @@ +# Plugin for TWiki Enterprise Collaboration Platform, http://twiki.org/ # -# TWiki WikiClone ($wikiversion has version info) -# # Copyright (C) 2000-2001 Andrea Sterbini, a.s...@fl... # Copyright (C) 2001 Peter Thoeny, Peter@Thoeny.com # @@ -15,32 +14,9 @@ # GNU General Public License for more details, published at # http://www.gnu.org/copyleft/gpl.html # -# ========================= -# -# This is an empty TWiki plugin. Use it as a template -# for your own plugins; see TWiki.TWikiPlugins for details. -# -# Each plugin is a package that contains the subs: -# -# initPlugin ( $topic, $web, $user, $installWeb ) -# commonTagsHandler ( $text, $topic, $web ) -# startRenderingHandler( $text, $web ) -# outsidePREHandler ( $text ) -# insidePREHandler ( $text ) -# endRenderingHandler ( $text ) -# -# initPlugin is required, all other are optional. -# For increased performance, all handlers except initPlugin are -# disabled. To enable a handler remove the leading DISABLE_ from -# the function name. -# -# NOTE: To interact with TWiki use the official TWiki functions -# in the &TWiki::Func module. Do not reference any functions or -# variables elsewhere in TWiki!! - # ========================= -package TWiki::Plugins::BugzillaLinkPlugin; # change the package name!!! +package TWiki::Plugins::BugzillaLinkPlugin; # ========================= use vars qw( @@ -49,7 +25,7 @@ ); $VERSION = '$Rev$'; -$RELEASE = '1.300'; +$RELEASE = '1.301 (2010-08-30)'; # ========================= sub initPlugin @@ -129,5 +105,6 @@ my ($mID) = @_; ## display a bug img and a bugzilla milesteone bug list return "$bugImgUrl [[$bugListUrl"."bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=$mID&emailtype1=exact&emailassigned_to1=1&emailreporter1=1][$myBugListText $mID]]"; - } +} + 1; |