Skip to Content.
Sympa Menu

en - Re: [sympa-users] 5.3.3 - /usr/share/sympa/web_tt2/list_admin_menu.tt2

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Eddy Beliveau <address@concealed>
  • To: David Verdin <address@concealed>
  • Cc: address@concealed
  • Subject: Re: [sympa-users] 5.3.3 - /usr/share/sympa/web_tt2/list_admin_menu.tt2
  • Date: Fri, 13 Nov 2009 12:20:54 -0500

Hi! David,

Many thanks for your reply.

I just add the following debug line at the beginning of /usr/share/sympa/web_tt2/list_admin_menu.tt2
<!-- begin list_admin_menu.tt2 -->
+ Note: is_archived=[% is_archived %]

I do NOT have any /etc/sympa/web_tt2/list_admin_menu.tt2 template file

When executing (as owner of some list, not as listmaster)
my web page http://myserver/cgi-bin/wwsympa.fcgi/admin/mylist, the display said "Note: is_archived=1"

I cannot find the condition that set this variable.

I'm assuming that the default is 0.

I take a look at /var/www/cgi-bin/wwsympa.fcgi and find the following code:
## Archives Access control
if (defined $list->{'admin'}{'web_archive'}) {
$param->{'is_archived'} = 1;

As you said, the presence of the parameter "web_archive" within SOME parameter file will set this value
but I do not know what is the name of THAT parameter file

I'm creating my list within the web interface,
my template /etc/sympa/create_list_templates/template01/config.tt2 does NOT contains any "web_archive" paragraph

My file /var/sympa/expl/mylist/config does NOT contains any "web_archive" paragraph

So, it seems that I missed something !!

Can you help ?

Thanks again,
Eddy

-------- Message original --------
Sujet : Re: [sympa-users] 5.3.3 - /usr/share/sympa/web_tt2/list_admin_menu.tt2
De : David Verdin <address@concealed>
Pour : Eddy Beliveau <address@concealed>
Copie à : address@concealed
Date : 2009-11-13 11:14
Hi,

"is_archived" is true only if web_archive parameter is defined.
I checked the code for the 5.3 branch and it works the same. what makes you think the it is always true?

cheers,

David

Eddy Beliveau a écrit :
Hi! Networkers,

On sympa 5.3.3, It seems that the condition 'is_archived' is always true
within /usr/share/sympa/web_tt2/list_admin_menu.tt2 template.

I just create a new list 'mylist'

There is no /var/sympa/arc/mylist directory

The following lines are commented within /var/sympa/expl/mylist/conf
#web_archive
# access private
# max_month 6
#archive
# period year
# access closed
The file /etc/sympa/edit_list.conf contains:
...cut...
web_archive listmaster write
web_archive owner,privileged_owner hidden
#web_archive.quota owner,privileged_owner hidden
#web_archive.max_month owner,privileged_owner read

I'm using the original 5.3.3 /usr/share/sympa/web_tt2/list_admin_menu.tt2 template.

I have no /etc/sympa/scenari/access_web_archive.default file.

Normally, I would assume that [% IF is_archived %] return false
but it seems to always return true

Is it normal that this variable return 'true' ?

Is it a bug ?
Did I missed something ?

Please note that I have the same behaviour with list_menu.tt2 template !

Thanks
Eddy




--
Eddy Beliveau
HEC Montreal
Montreal (Quebec)
Canada




Archive powered by MHonArc 2.6.19+.

Top of Page