Skip to Content.
Sympa Menu

devel - [sympa-dev] Re: [sympa-users] Showing "your lists" from all robots?

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: Øystein Gyland <address@concealed>
  • To: David Verdin <address@concealed>
  • Cc: address@concealed, "address@concealed" <address@concealed>
  • Subject: [sympa-dev] Re: [sympa-users] Showing "your lists" from all robots?
  • Date: Fri, 22 Aug 2008 19:27:57 +0200


On Wed, 2008-01-30 at 12:42 +0100, David Verdin wrote:
> Hi,
>
> When displaying the lists, Sympa uses the current robot the user is
> browsing. which means it won't even search the other robots for it.
> I guess this could be something controlled by a parameter.
>
> To display the "your lists" panel, Sympa uses the list returned by
> List::get_which(user,robot,role).
> You could extend this function to return list from several robots.
> Currently, it returns an array. Maybe it could return a hash with a
> structure like :
>
> root-->robot1-->list1
> | |--> list2
> | |--> list3
> | |--> ...
> |-->robot2-->list1
> | |--> list2
> | |--> list3
> | |--> ...
> |-->....
>
> But keep in mind that it could mean a change in the code anywhere this
> function is called.
> I guess you could start by creating a new function (something like
> List::get_which_large(user,robot,role) where "robot" could be either a
> reference to an array containing the robots to search, or a string like
> "all" to search all the robots.
> We could later redirect calls to List::get_which to List::get_which_large.
>
> Additionnally, you could add a control in wwsympa.fcgi (defined
> according to a new parameter value) in the section around lines
> 1112-1151 which could define which function to call.


Hi, the following code will not handle two lists with identical local
part ( ie. address@concealed and address@concealed ):

my $l = $list->{'name'};
$param->{'which_info'}{$l}{'subject'} = $list->{'admin'}{'subject'};
$param->{'which_info'}{$l}{'host'} = $list->{'admin'}{'host'};
$param->{'which_info'}{$l}{'info'} = 1;

Any suggestions on work-around? How about using join("@",
$list->{'name'},$list->{'admin'}{'host'}) as the list name?

-Øystein




  • [sympa-dev] Re: [sympa-users] Showing "your lists" from all robots?, Øystein Gyland, 08/22/2008

Archive powered by MHonArc 2.6.19+.

Top of Page