TWiki Source Code Packages![]() pod , so it always matches the running code
TWiki::AccessControlExceptionException used raise an access control violation. This package doesn't smellTWiki::AccessA singleton object of this class manages the access control database. This package doesn't smellTWiki::AttachA singleton object of this class is used to deal with attachments to topics. This package has smell factor of 1TWiki::AttrsClass of attribute sets, designed for parsing and storing attribute values from a TWiki tag e.g.%TAG{fred='bad' "sad" joe="mad"}%
An attribute set is a map containing an entry for each parameter. The
default parameter (unnamed quoted string) is named _DEFAULT in the map.
Attributes declared later in the string will override those of the same
name defined earlier. The one exception to this is the _DEFAULT key, where
the first instance of a setting is always taken.
As well as standard TWiki syntax (parameter values double-quoted)
it also parses single-quoted values, unquoted spaceless
values, spaces around the =, and commas as well as spaces separating values,
though none of these alternatives is advertised in documentation and
the extended syntax can be turned off by passing the 'strict' parameter
to new .
This class replaces the old TWiki::extractNameValuePair and
TWiki::extractParameters.
This package doesn't smell
TWiki::Client::ApacheLoginThis is login manager that you can specify in the security setup section of configure. It instructs TWiki to cooperate with your web server (typically Apache) to require authentication information (username & password) from users. It requires that you configure your web server to demand authentication for scripts named "login" and anything ending in "auth". The latter should be symlinks to existing scripts; e.g.,viewauth -> view , editauth -> edit , and so on.
See also TWikiUserAuthentication.
Subclass of TWiki::Client; see that class for documentation of the
methods of this class.
This package doesn't smell
TWiki::ClientThe package is also a Factory for login managers and also the base class for all login managers. On it's own, an object of this class is used when you specify 'none' in the security setup section of configure. When it is used, logins are not supported. If you want to authenticate users then you should consider TemplateLogin? or ApacheLogin?, which are subclasses of this class. If you are building a new login manager, then you should write a new subclass of this class, implementing the methods marked as VIRTUAL. There are already examples in thelib/TWiki/Client directory.
The class has extensive tracing, which is enabled by
$TWiki::cfg{Trace}{Client.pm}. The tracing is done in such a way as to
let the perl optimiser optimise out the trace function as a no-op if tracing
is disabled.
Here's an overview of how it works:
Early in TWiki::new, the login manager is created. The creation of the login manager does two things:
ObjectData?
The TWiki object this login manager is attached to.
This package has smell factor of 2
| ||||||||
Changed: | ||||||||
< < | This package has smell factor of 10 | |||||||
> > | This package has smell factor of 9 | |||||||
TWiki::Store::RcsLiteThis package does not publish any methods. It implements the virtual methods of the TWiki::Store::RcsFile superclass. Simple replacement for RCS. Doesn't support:
File formatrcstext ::= admin {delta}* desc {deltatext}* admin ::= head {num}; { branch {num}; } access {id}*; symbols {sym : num}*; locks {id : num}*; {strict ;} { comment {string}; } { expand {string}; } { newphrase }* delta ::= num date num; author id; state {id}; branches {num}*; next {num}; { newphrase }* desc ::= desc string deltatext ::= num log string { newphrase }* text string num ::= {digit | .}+ digit ::= 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 id ::= {num} idchar {idchar | num }* sym ::= {digit}* idchar {idchar | digit }* idchar ::= any visible graphic character except special special ::= $ | , | . | : | ; | @ string ::= @{any character, with @ doubled}*@ newphrase ::= id word* ; word ::= id | num | string | :Identifiers are case sensitive. Keywords are in lower case only. The sets of keywords and identifiers can overlap. In most environments RCS uses the ISO 8859/1 encoding: visible graphic characters are codes 041-176 and 240-377, and white space characters are codes 010-015 and 040. Dates, which appear after the date keyword, are of the form Y.mm.dd.hh.mm.ss, where Y is the year, mm the month (01-12), dd the day (01-31), hh the hour (00-23), mm the minute (00-59), and ss the second (00-60). Y contains just the last two digits of the year for years from 1900 through 1999, and all the digits of years thereafter. Dates use the Gregorian calendar; times use UTC. The newphrase productions in the grammar are reserved for future extensions to the format of RCS files. No newphrase will begin with any keyword already in use. Revisions consist of a sequence of 'a' and 'd' edits that need to be applied to rev N+1 to get rev N. Each edit has an offset (number of lines from start) and length (number of lines). For 'a', the edit is followed by length lines (the lines to be inserted in the text). For example: d1 3 means "delete three lines starting with line 1 a4 2 means "insert two lines at line 4' xxxxxx is the new line 4 yyyyyy is the new line 5 This package has smell factor of 2 TWiki::Store::RcsWrapThis package does not publish any methods. It implements the virtual methods of the TWiki::Store::RcsFile superclass. Wrapper around the RCS commands required by TWiki. There is one of these object for each file stored under RCS. This package has smell factor of 2 | ||||||||
Added: | ||||||||
> > | TWiki::Store::SearchAlgorithms::ForkingForking implementation of the RCS cache search.search($searchString, $topics, $options, $sDir) -> \%seenSearch .txt files in $dir for $string. See RcsFile?::searchInWebContent for details. This package has smell factor of 2TWiki::Store::SearchAlgorithms::NativeNative implementation of the RCS cache search. Requires tools/native_search to be built and installed.search($searchString, $topics, $options, $sDir) -> \%seenSearch .txt files in $dir for $string. See RcsFile?::searchInWebContent for details. Rude and crude, this makes no attempt to handle UTF-8. This package doesn't smellTWiki::Store::SearchAlgorithms::PurePerlPure perl implementation of the RCS cache search.search($searchString, $topics, $options, $sDir) -> \%seenSearch .txt files in $dir for $string. See RcsFile?::searchInWebContent for details. This package doesn't smell | |||||||
TWiki::TemplatesSupport for the TWiki template language. This package has smell factor of 2TWiki::TimeTime handling functions. This package has smell factor of 7TWiki::UI::ChangeFormService functions used by the UI packages This package doesn't smellTWiki::UIService functions used by the UI packages This package doesn't smellTWiki::UI::EditEdit command handler This package has smell factor of 1TWiki::UI::ManageUI functions for web, topic and user management This package has smell factor of 5TWiki::UI::OopsUI delegate for oops function This package doesn't smellTWiki::UI::RDiffUI functions for diffing. This package has smell factor of 12TWiki::UI::RegisterUser registration handling. This package has smell factor of 19TWiki::UI::SaveUI delegate for save function This package has smell factor of 1TWiki::UI::SearchUI functions for searching. This package has smell factor of 3TWiki::UI::StatisticsStatistics extraction and presentation This package has smell factor of 4TWiki::UI::UploadUI delegate for attachment management functions This package has smell factor of 3TWiki::UI::ViewUI delegate for view function This package has smell factor of 2TWiki::UserA User object is an internal representation of a user in the real world. The object knows about users having login names, wiki names, personal topics, and email addresses. This package has smell factor of 4TWiki::Users::ApacheHtpasswdUserPassword manager that uses Apache::HtPasswd to manage users and passwords. Subclass ofTWiki::Users::Password .
See documentation of that class for descriptions of the methods of this class.
Duplicates functionality of
=TWiki::Users::HtPasswdUser=;
provided mainly as an example of how to write a new password manager.
This package doesn't smell
TWiki::UsersSingleton object that handles mapping of users to wikinames and vice versa, and user authentication checking. This package has smell factor of 2TWiki::Users::PasswordBase class of all password handlers. Default behaviour is no passwords, so anyone can be anyone they like. The methods of this class should be overridded by subclasses that want to implement other password handling methods. This package has smell factor of 1TWiki::Users::TWikiUserMappingUser mapping is the process by which TWiki maps from a username (a login name) to a wikiname and back. It is also where groups are maintained. By default TWiki maintains user topics and group topics in the Main that define users and group. These topics are
| ||||||||
Changed: | ||||||||
< < | There were a total of 199 smells | |||||||
> > | There were a total of 200 smells | |||||||