Skip to Content.
Sympa Menu

en - [sympa-users] Re: Re: Create own task

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: David Verdin <address@concealed>
  • To: Yves BLUSSEAU <address@concealed>
  • Cc: address@concealed
  • Subject: [sympa-users] Re: Re: Create own task
  • Date: Fri, 22 Jun 2007 17:45:58 +0200

Yves,

I started (but didn't finish) updating the documentation regarding tasks.
You can find it there: http://www.sympa.org/wiki/manual/customizing#tasks

Anyway, it is quite difficult to create a task for a list.
You must fin a task-related parameter, i.e. one which will tell sympa to use a certain task model.
For now, there is no way use any task name. Two parameters only allow to tune task management for a list:
- remind_task : defines which define.xx task model will be used
- expire_task: defines which expire.xx task model will be used.

So, if you create your own remind.myVersion task model file and use the parameter
remind_task myVersion
in your config file, this task model will be used.
The problem is : if you use the task model named "remind" for your personnal purpose, you can't use it for its original aim.

This what I have understood so far. I guess this requires to be dug deeper.

Regards,

Yves BLUSSEAU a écrit :
Hi,
it answer partialy to my question. I want to add something in the config.tt2
file so when the list is instanciate a task (of my own) will be created for
that list. I put the model of my list in the etc/list_task_model. BUT :)

You write:
In the list configuration file, you must define the model and version of
the task you want to create. Therefore, you can introduce it into you
config.tt2 for the list model concerned.

Can you give me an example, because i don't know what to put in the
config.tt2 file for that.

Thanks in advance.
Yves

----- Original Message -----
Yves ........ a écrit :
Hi,

How can i create my own task when a new list is created ?

Are there some parameters in the config file ?

Thanks in advance.
Yves ........

Hi,

Do you want to automatically create a task when a list is created by modifying the config.tt2 used to create it?
In the list configuration file, you must define the model and version of the task you want to create. Therefore, you can introduce it into you config.tt2 for the list model concerned.

Thereafter, tasks must be added into the relevant directory (being etc/list_task_models/ or expl/<listname>/) to be gathered by the task manager.
If you want a task to be applied to any list in a server or host, you must add this task to the "list_task_models/" of etc/ (for the server) or etc/<hostname>/ (for a virtual host). This way, anytime you create a list in this server or host, it will inherit this task.

Does it answer your question or am I far from your needs?

Regards,

--
David Verdin
Comité réseau des universités



--
David Verdin
Comité réseau des universités




Archive powered by MHonArc 2.6.19+.

Top of Page