Name : perl-CGI-Application-Plugin-MessageStack
| |
Version : 0.34
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp155.7.1
| Date : 2023-07-20 15:58:17
|
Group : Development/Libraries/Perl
| Source RPM : perl-CGI-Application-Plugin-MessageStack-0.34-lp155.7.1.src.rpm
|
Size : 0.04 MB
| |
Packager : https://www_suse_com/
| |
Summary : Message stack for your CGI::Application
|
Description :
This plugin by default needs a session object to tuck away the message(s). It\'s recommended that you use this in conjunction with CGI::Application::Plugin::Session. You can opt to not have the messages persist and thereby, not use CAP-Session by using the \'-dont_use_session\' option in the \'capms_config\' method.
This plugin hooks into cgiapp\'s load_tmpl method and if you\'ve pushed any messages in the stack, will automatically add the message parameters.
In the functions, there are scope & classification keys and when they\'re used for either display or your API purposes (clearing, pop\'ing, etc), the classification is an exclusive specification. Meaning, if you ask for messages with the \'ERROR\' classification, it will only deal with messages that you\'ve pushed in with the \'ERROR\' classification. Any messages that have no classification aren\'t included.
The scope key is not exclusive, meaning that if you ask for messages with a \'mainpage\' scope, it will deal with messages that you\'ve pushed with that scope *as well as* any messages that you\'ve pushed in without a scope.
If you use both scope & classification, it blends both of those rules, first getting all matching messages with the same classification and then filtering out messages that are scoped and don\'t match the scope you\'re looking for.
This logic may change as I get feedback from more saavy developers. What we may end up doing is have a plugin configuration where you can dictate the logic that\'s used.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-C/15.5/noarch |