Skip to Content.
Sympa Menu

devel - Re: [sympa-developpers] [sympa-commits] sympa[7916] branches/sympa-6.2-branch: [bug] Getting rid of the last occurrences of subs working on list members that do not use the term 'list_member'.

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: David Verdin <address@concealed>
  • To: address@concealed
  • Subject: Re: [sympa-developpers] [sympa-commits] sympa[7916] branches/sympa-6.2-branch: [bug] Getting rid of the last occurrences of subs working on list members that do not use the term 'list_member'.
  • Date: Tue, 06 Nov 2012 17:05:22 +0100

Oups. I put the reply-to header to sympa-commits instead of sympa-developpers.
Sorry, it's fixed.

Cheers,

David

Le 06/11/12 17:01, address@concealed a écrit :
sympa[7916] branches/sympa-6.2-branch: [bug] Getting rid of the last occurrences of subs working on list members that do not use the term 'list_member'.
Revision
7916
Author
david.verdin
Date
2012-11-06 17:01:43 +0100 (mar. 06 nov. 2012)

Log Message

[bug] Getting rid of the last occurrences of subs working on list members that do not use the term 'list_member'. this led soap and the web to occasionnally crash.

Modified Paths

  • branches/sympa-6.2-branch/soap/sympasoap.pm
  • branches/sympa-6.2-branch/src/lib/List.pm
  • branches/sympa-6.2-branch/wwsympa/wwsympa.fcgi.in

Diff

Modified: branches/sympa-6.2-branch/soap/sympasoap.pm (7915 => 7916)


--- branches/sympa-6.2-branch/soap/sympasoap.pm	2012-11-06 14:36:09 UTC (rev 7915)
+++ branches/sympa-6.2-branch/soap/sympasoap.pm	2012-11-06 16:01:43 UTC (rev 7916)
@@ -750,7 +750,7 @@
     }else {
 	my $u;
 	my $defaults = $list->get_default_user_options();
-	my $u2 = &List::get_user_db($email);
+	my $u2 = &List::get_global_user($email);
 	%{$u} = %{$defaults};
 	$u->{'email'} = $email;
 	$u->{'gecos'} = $gecos || $u2->{'gecos'};

Modified: branches/sympa-6.2-branch/src/lib/List.pm (7915 => 7916)


--- branches/sympa-6.2-branch/src/lib/List.pm	2012-11-06 14:36:09 UTC (rev 7915)
+++ branches/sympa-6.2-branch/src/lib/List.pm	2012-11-06 16:01:43 UTC (rev 7916)
@@ -8881,7 +8881,7 @@
     my $name = $self->{'name'}; 
     my $admin = $self->{'admin'};
     my $dir = $self->{'dir'};
-    &Log::do_log('debug2', 'List::_load_users_include for list %s',$name);
+    &Log::do_log('debug2', 'Loading included users for list %s',$name);
     my (%users, $depend_on, $ref);
     my $total = 0;
     my @errors;

Modified: branches/sympa-6.2-branch/wwsympa/wwsympa.fcgi.in (7915 => 7916)


--- branches/sympa-6.2-branch/wwsympa/wwsympa.fcgi.in	2012-11-06 14:36:09 UTC (rev 7915)
+++ branches/sympa-6.2-branch/wwsympa/wwsympa.fcgi.in	2012-11-06 16:01:43 UTC (rev 7916)
@@ -11080,10 +11080,10 @@
 	 &web_db_log({'status' => 'error',
 		      'error_type' => 'no_subscribers'});
      }
-     my @users = &List::_load_users_file("$list->{'dir'}/subscribers.closed.dump");
+     my @users = &List::_load_list_members_file("$list->{'dir'}/subscribers.closed.dump");
      ## Insert users in database
      foreach my $user (@users) {
-	 $list->add_user($user);
+	 $list->add_list_member($user);
      }
 
      $list->savestats(); 

Attachment: smime.p7s
Description: Signature cryptographique S/MIME



  • Re: [sympa-developpers] [sympa-commits] sympa[7916] branches/sympa-6.2-branch: [bug] Getting rid of the last occurrences of subs working on list members that do not use the term 'list_member'., David Verdin, 11/06/2012

Archive powered by MHonArc 2.6.19+.

Top of Page