create new tag
, view all tags
Candidate code for adding to the shared code repository. Code may be classes, functions, or code fragments, but in general will need to be packaged in a Perl package for the repository. If you propose a shared code block, you are implicitly offering to do the work. Proposals have to be seconded by (1) a CoreTeam member or (2) CrawfordCurrie, MartinCleaver, WillNorris.

Description and Rationale Used in Plugin(s) Proposer Seconder
Parameter handling module, handles parameters to %TAG{}% constructs in a nice way. This already shared code provides a canonical parser for %TAG parameters (the bit in the {}. Use of this parser reduces the risk that a plugin author creates non-standard or incompatible syntaxes for these tags. ActionTrackerPlugin, FormQueryPlugin, CommentPlugin, TocPlugin, TWikiDrawPlugin, PowerEditPlugin CrawfordCurrie  
A "CairoCompatabilityModule". This will contain (1) implementations of functions deprecated in Cairo and (2) implementations of core global variables and hidden functions removed in Cairo but needed to keep plugins alive. Note that this candidate is just for the concept - each addition to this module needs a separate line on this table, so we can track what we add. Needed to maintain compatability with earlier releases   CrawfordCurrie WillNorris, MattWilkie
Template handling in CommentPlugin, add to "CairoCompatabilityModule". This duplicates code added in the Cairo release, for reading templates out of user topics. Unfortunately, it's needed for earlier releases for the plugin to be compatibly, so I'm proposing that it be added to "CairoCompatabilityModule". CommentPlugin CrawfordCurrie  
Regexes in TWiki have been moved to a hash, and may only be accessed through Func now. But they've killed off the old variables at the same time, so a deprecation interface is required. "CairoCompatabilityModule" Many CrawfordCurrie  
SavemultiCgiScript - probably the most widely shared script among the skins KoalaSkin, AmbarSkin, DandruffSkin, GnuSkin, PhotonSkin, SimpleSkin, SeeSkin, VoidSkin, possibly others MattWilkie  
RecommendedStorageOfPluginData - Peter wrote a nice lump of code that he recommended people duplicate into their plugins. As it is ostensibly the same for all plugins it would be better served as a piece of SharedCode, and parameterised as necessary. -- MartinCleaver - 15 May 2004 recommended for all MattWilkie  

I'm not sure I'm qualified for seconding shared-code candidates. I can't evaluate the quality of code or the validity of certain design approaches. I'm certainly willing help push ideas forward though.

Isn't the 'regex handling' a subset of the compatibility module? (I'm just wondering why it is a seperate entry).

BTW, absense of a seconder does not mean absense of support. In my case it might mean I don't have enough understanding to say "yah, that's a great idea. We need to do it" with any weight. For example the TAG parser module sounds like a great idea to me, but I don't know that it actually is.

-- MattWilkie - 08 Apr 2004

I took your name off the list of seconders; but I think we need more seconders from among plugins authors to make this work. Anyone willing to join the fray, please comment here!

-- CrawfordCurrie - 09 Apr 2004


%hash = $p->parse_args( $arg_string );

This routine is handy for parsing the contents of an HTML tag into key=value pairs. For instance:

$text = 'type=checkbox checked name=flavor value="chocolate or strawberry"'; %hash = $p->parse_args( $text ); # %hash is ( TYPE=>'checkbox', CHECKED=>undef, NAME=>'flavor', # VALUE=>'chocolate or strawberry' )
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2004-06-22 - MattWilkie
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.