Mailinglist Archive: yast-devel (144 mails)

< Previous Next >
Re: [yast-devel] any inst_ldap-client?
  • From: Jordi Massaguer Pla <jordi.massaguer@xxxxxxxxxxxxxx>
  • Date: Fri, 01 Feb 2008 14:10:06 +0100
  • Message-id: <1201871406.22364.19.camel@xxxxxxxxxxxxxxx>


Yes, this is exactly what I wanted to advise you :)

Create a new ycp client that just handles in/out and calls the ldap
module inside:

See, e.g., this one /usr/share/YaST2/clients/inst_language.ycp
made by Jiri Suchomel:
{
import "GetInstArgs";

map args = GetInstArgs::argmap();

if (args["first_run"]:"yes" != "no")
args["first_run"] = "yes";

return WFM::CallFunction ("select_language", [args]);
}

Very simple and works as expected. Patching an existent client works but
could produce a lot of confusion when being tested and debugged.

L.


So I'll try this:

{
import "GetInstArgs";

map args = GetInstArgs::argmap();

if (args["first_run"]:"yes" != "no")
args["first_run"] = "yes";

return WFM::CallFunction ("ldap", [args]);
}

is that what you meant?

--

Jordi Massaguer i Pla
openTrends Solucions i Sistemes, S.L.
Torre Llacuna
C/Llacuna 166, 10º 1ª A
08018 Barcelona
Phone: (+34) 93 320 84 14
Fax: (+34) 93 300 35 27



--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups