From 1be510f9529cb082f802408b472a77d074b394c0 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Sun, 14 Apr 2013 13:46:12 +0000 Subject: Add zarb MLs html archives --- zarb-ml/mageia-sysadm/2011-January/001647.html | 113 +++++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 zarb-ml/mageia-sysadm/2011-January/001647.html (limited to 'zarb-ml/mageia-sysadm/2011-January/001647.html') diff --git a/zarb-ml/mageia-sysadm/2011-January/001647.html b/zarb-ml/mageia-sysadm/2011-January/001647.html new file mode 100644 index 000000000..36e811434 --- /dev/null +++ b/zarb-ml/mageia-sysadm/2011-January/001647.html @@ -0,0 +1,113 @@ + + + + [Mageia-sysadm] [245] more compact code + + + + + + + + + +

[Mageia-sysadm] [245] more compact code

+ root at mageia.org + root at mageia.org +
+ Fri Jan 7 02:39:40 CET 2011 +

+
+ +
Revision: 245
+Author:   misc
+Date:     2011-01-07 02:39:40 +0100 (Fri, 07 Jan 2011)
+Log Message:
+-----------
+more compact code
+
+Modified Paths:
+--------------
+    identity/CatDap/trunk/lib/CatDap/Controller/user.pm
+
+Modified: identity/CatDap/trunk/lib/CatDap/Controller/user.pm
+===================================================================
+--- identity/CatDap/trunk/lib/CatDap/Controller/user.pm	2011-01-07 01:39:35 UTC (rev 244)
++++ identity/CatDap/trunk/lib/CatDap/Controller/user.pm	2011-01-07 01:39:40 UTC (rev 245)
+@@ -237,14 +237,13 @@
+ 
+ sub add : Local  {
+     my ( $self, $c) = @_;
+-    my ($mesg,$entry,$user,$attr,$value,$userfilter);
+-    $attr = $c->req->param('attribute');
+-    $value = $c->req->param('value');
+-    $user = $c->user->username;
+-    $userfilter = sprintf($c->user->store->user_filter ,$c->user->username);
++    my $attr = $c->req->param('attribute');
++    my $value = $c->req->param('value');
++    my $user = $c->user->username;
++    my $userfilter = sprintf($c->user->store->user_filter ,$c->user->username);
+     $c->log->debug("Searching for user $user with $userfilter");
+-    $mesg = $c->model('User')->search($userfilter);
+-    $entry = $mesg->entry;
++    my $mesg = $c->model('User')->search($userfilter);
++    my $entry = $mesg->entry;
+     $entry->add( $attr => $value);
+     $c->log->info("Adding $attr = $value to user $user");
+     $entry->update;
+-------------- next part --------------
+An HTML attachment was scrubbed...
+URL: </pipermail/mageia-sysadm/attachments/20110107/67bf9ae4/attachment-0001.html>
+
+ + + + + + + + + + + + + + + + + + + + + +
+

+ +
+More information about the Mageia-sysadm +mailing list
+ -- cgit v1.2.1