/[smeserver]/rpms/e-smith-domains/sme9/e-smith-domains-2.4.0.bz8842.retrieve_name_and_description_in_locale.patch
ViewVC logotype

Contents of /rpms/e-smith-domains/sme9/e-smith-domains-2.4.0.bz8842.retrieve_name_and_description_in_locale.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Sat Jul 11 17:19:25 2015 UTC (9 years, 4 months ago) by stephdl
Branch: MAIN
CVS Tags: e-smith-domains-2_4_0-3_el6_sme, e-smith-domains-2_4_0-4_el6_sme, HEAD
Error occurred while calculating annotation data.
* Mon Jul 6 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 2.4.0-3.sme
- display variable name in the server-manager
- $domainName, $domainDesc $domain [SME: 8842]

1 diff -Nur e-smith-domains-2.4.0.bz8842.old/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/domains e-smith-domains-2.4.0.bz8842/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/domains
2 --- e-smith-domains-2.4.0.bz8842.old/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/domains 2015-07-06 19:16:05.074473399 +0200
3 +++ e-smith-domains-2.4.0.bz8842/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/domains 2015-07-06 19:16:43.003493242 +0200
4 @@ -1,6 +1,6 @@
5 <!-- vim: ft=xml ts=4 sw=4 et:
6 -->
7 -<lexicon lang="en-us">
8 +<lexicon lang="en-us" params="getExtraParams()">
9 <entry>
10 <base>FORM_TITLE</base>
11 <trans>
12 diff -Nur e-smith-domains-2.4.0.bz8842.old/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/domains.pm e-smith-domains-2.4.0.bz8842/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/domains.pm
13 --- e-smith-domains-2.4.0.bz8842.old/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/domains.pm 2015-07-06 19:16:05.087474439 +0200
14 +++ e-smith-domains-2.4.0.bz8842/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/domains.pm 2015-07-06 19:18:52.347636356 +0200
15 @@ -35,7 +35,7 @@
16
17 our @ISA = qw(esmith::FormMagick Exporter);
18
19 -our @EXPORT = qw();
20 +our @EXPORT = qw( getExtraParams );
21
22 our $VERSION = sprintf '%d.%03d', q$Revision: 1.1 $ =~ /: (\d+).(\d+)/;
23
24 @@ -454,4 +454,24 @@
25
26 return;
27 }
28 +
29 +=head2 getExtraParams()
30 +Sets variables used in the lexicon to their required values.
31 +=for testing
32 +$panel->{cgi}->param(-name=>'name', -value=>'foo');
33 +my %ret = $panel->getExtraParams();
34 +is($ret{name}, 'foo', ' .. name field is foo');
35 +isnt($ret{description}, undef, ' .. description field isnt undef');
36 +=cut
37 +
38 +sub getExtraParams
39 +{
40 + my $self = shift;
41 + my $q = $self->{cgi};
42 + my $domain= $q->param('Domain');
43 + my $domaindesc = $ddb->get_prop($domain, 'Description');
44 +
45 + return (domain => $domain, domainDesc => $domaindesc, domainName => $domain);
46 +}
47 +
48 1;

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed