Skip to Content.
Sympa Menu

devel - [sympa-dev] Extending sympasoap.pm list admin - parse_tpl help

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: epsas <address@concealed>
  • To: address@concealed
  • Cc: address@concealed
  • Subject: [sympa-dev] Extending sympasoap.pm list admin - parse_tpl help
  • Date: Sun, 26 Sep 2004 18:48:31 +0100

Bonjour,

Getting closer to administering our sympa lists with soap. =)

I have added a couple of list administration functions to sympasoap: create,
close, purge list (excuse the "_" filename mangling):

http://www.dogsquad.co.uk/~epsas/sympasoap_pm

an accompanying sympasoap client:
http://www.dogsquad.co.uk/~epsas/sympasoapClient_pl

Currently, I am running into complications composing a valid parameters hash
for parser::parse_tpl (at least, I think that is the problem... my perl-fu is
not strong ;).


# client
my $parameters;
$parameters->{'list_conf'}{'editor'}{'email'} = 'address@concealed';
$parameters->{'list_conf'}{'editor'}{'reception'} = 'mail';
$parameters->{'list_conf'}{'editor'}{'gecos'} = 'charles paul';

$r = $soap->setListConf("flexomaticcvsinfo", \$parameters);
&print_result($r);


# server
sub setListConf{
my ($class, $list, $param) = @_;
...
&parser::parse_tpl ($param, $template_file, \*CONFIG);


I've tried passing $param as a \$hashref to parse_pl (and in combination with
soap->setListConf): no luck.

Any advice you fine folks may have will surely be appreciated. (Is there a
sympa IRC channel? I'll be idling as 'epsas' on #sympa on irc.oftc.net in
the meantime. =)


Thanks for hacking on Sympa,
Charles Paul






Archive powered by MHonArc 2.6.19+.

Top of Page