Skip to Content.
Sympa Menu

en - Re: [sympa-users] XML File Format

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: address@concealed
  • To: Redmond Militante <address@concealed>
  • Cc: address@concealed
  • Subject: Re: [sympa-users] XML File Format
  • Date: Fri, 27 Oct 2006 08:22:00 +0200

Redmond Militante wrote:
We are creating lists from the command line like

sympa.pl -create_list test -input_file test.xml

The XML list creation template looks like

<?xml version="1.0" ?>
<list>
  <listname>test</listname>
  <type>private_working_group</type>
  <subject>example list</subject>
  <description/>
  <status>open</status>
  <visibility>secret</visibility>
  <shared_edit>editor</shared_edit>
  <shared_read>editor</shared_read>
  <language>us</language>
  <owner multiple="1">
    <email>address@concealed</email>
  </owner>
</list>

This will create a generic private_working_group list.  Are there XML elements that will create a list such that...
  
You have to edit your own list type.
  • create ~sympa/etc/create_list_templates
  • cp -pR ~sympa/bin/etc/create_list_templates/private_working_group/ ~sympa/etc/create_list_templates/uchicago-list-type1
  • edit and customize anyfile you want in ~sympa/etc/create_list_templates/uchicago-list-type1 . You can introduce any new var using [% xxx %] tt2 syntax
  • create a xml file for variables definition : myfile.xml
  • it must include all vars you have defined at previous step
  • <type>uchicago-list-type1</type>
sympa.pl -create_list test -input_file myfile.xml

Hope this help.
Serge




Archive powered by MHonArc 2.6.19+.

Top of Page