Skip to Content.
Sympa Menu

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

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: David Verdin <address@concealed>
  • To: Ståle Kristoffersen <address@concealed>
  • Cc: address@concealed, "address@concealed" <address@concealed>
  • Subject: Re: [sympa-users] Showing "your lists" from all robots?
  • Date: Wed, 30 Jan 2008 12:42:30 +0100

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.

Any reactions about the proposed behaviour ?

Regards,

Ståle Kristoffersen a écrit :
Hi, we would like to have "your list" show lists from all the robots. We
have looked around and found no obvious way of doing it. Have anyone here
made that work, or could tell us how to implement it so that it is accepted
upstream? Maintaining local patches is something we would like to avoid.


--
David Verdin
Comité réseau des universités




Archive powered by MHonArc 2.6.19+.

Top of Page