Skip to Content.
Sympa Menu

en - [Fwd: Re: [sympa-users] question about xml creation list]

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Gwenaelle Bouteille <address@concealed>
  • To: address@concealed
  • Subject: [Fwd: Re: [sympa-users] question about xml creation list]
  • Date: Wed, 05 Oct 2005 10:04:07 +0200



-------- Message original --------
Sujet: Re: [sympa-users] question about xml creation list
Date: Wed, 05 Oct 2005 10:03:31 +0200
De: Gwenaelle Bouteille <address@concealed>
Répondre à: address@concealed
Pour: Daniel Cortes <address@concealed>
Références: address@concealed"><address@concealed>


Daniel Cortes a écrit :
Hi everybody,  I've a question and perhaps you can reply me.
I'm trying to create a list, but this list it isn't configurated in a family list (because I can't do this).
Now I want try to use --create_list method with a XML like this.

My question is how I do to have params in the editor include and owner include ( i think that I've to options, but don't know if this is correct).

<?xml version="1.0" encoding="UTF-8"?>
<list>
<listname>prueba-news</listname>
<subject>Borrame</subject>
<status>open</status>
<owner_include>
  <source>admin</source>
  <params>                       *
      <host>a</host>          *
      <user>b</user>          *                Like this
      <pwd>c</pwd>         *                   or
      <name>d</<name>    *
      <grup>e</grup>         *
  </params>                      *
</owner_include>
Here it means xml variable owner_include.params.host = a . So, in config.tt2 it will be used as this : [% owner_include.params.host %]  (where you want).
<editor_include>
  <source>moderador</source>
  <source_parameters> 1 2 3 4 5</source_params>              *  Like this
</editor_include>
Here it means xml variable editor_include.source_parameters ="1 2 3 4 5" . So, in config.tt2 it will be used as this : [% editor_include.source_parameters %] (where you want).

In fact you can name xml variable as you want (<var_xml>), it is the name you will use in the config.tt2 ([%var_xml%]. About this you can read : http://www.sympa.org/doc/html/node17.html#SECTION001710000000000000000

Parameters of  "owner_include" are other parameters then xml variables. They are introduce in the owner_include paragraph  with keyword "source_parameter" and these parameters are used in the data inclusion file. For more explaination, you can read : http://www.sympa.org/doc/html/node16.html#SECTION001670000000000000000

--
Signature
Gwenaelle Bouteille

--
Signature
Gwenaelle Bouteille


  • [Fwd: Re: [sympa-users] question about xml creation list], Gwenaelle Bouteille, 10/05/2005

Archive powered by MHonArc 2.6.19+.

Top of Page