Skip to Content.
Sympa Menu

devel - [sympa-dev] saving list config was: extending soap..

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: Joe Vieira <address@concealed>
  • To: "address@concealed" <address@concealed>
  • Subject: [sympa-dev] saving list config was: extending soap..
  • Date: Tue, 8 Apr 2008 13:24:59 -0400

Still no responses on this does anybody have ANY ideas at all? is there a better way to contact people who do devel work on sympa?

stepping thru almost everything in the perl debugger it looks like the problem (maybe) is that i am getting to this line in List.pm

line9835 $fd->print(sprintf "%s %s\n\n", $key, $p)

$key = 'owner'
$p = my hash
DB<23> x $p
0 HASH(0x9fcf0e4)
'date' => 1207673686
'dom' => 'ude.ukralc@'
'email' => 'address@concealed'
'gecos' => 'joe vieira'
'id' => undef
'included' => 0
'info' => undef
'profile' => 'normal'
'reception' => 'mail'
'subscribed' => 1
'update_date' => 1207673686
'visibility' => 'conceal'

DB<24> x sprintf "%s %s\n\n", $key, $p
0 'owner HASH(0x9fcf0e4)' so this is obviously where i am messed up.

My only thinking at this point is that i should be getting into the on line 9797 elsif (ref($::pinfo{$key}{'file_format'}))

but i'm not because owner doesn't have file_format set in it's pinfo. so i'm at a loss... any help would be awesome.

Thanks,

Joe


Joe Vieira wrote:
Hi everyone,

So I am looking at extending the SOAP interface to allow edits of
owners / and editors.
let me know if i am doing this correctly, or if i am doing something
totally stupid please..

basically..

my $list = new List('$ListQuery',"$robot");
$newOwner = "address@concealed";
my @owner = $list->get_owners();
$owner[0]->[0]->{'email'} = $newOwner;
$list->{'admin'}->{'owner'}[0] = $owner[0][0];
$list->save_config($sender);

now, the result of that code is

owner HASH(memorylocation) in the config file

the same thing occurs if i do:

my $list = new List('$ListQuery',"$robot");
$list->save_config($sender);

So, my question: Is am I doing this wrong, what am i doing stupidly, AND
how would you recommend for me to save the new owner?

Joe Vieira
UNIX Systems Administrator
Clark University - ITS





Archive powered by MHonArc 2.6.19+.

Top of Page