Loading…
rafaelff
Translation added |
English | Portuguese (Brazil) | ||
---|---|---|---|
mailing list | lista de discussão | GNU Mailman | |
mailing list | lista de discussão | GNU Mailman | |
Mailman | Mailman | GNU Mailman |
Context
As another example, say you wanted to change the display name for a particularmailing list. You could put the following function in a file called
`change.py`:
def change(mlist, display_name):
mlist.display_name = display_name
and run this from the command line:
% mailman withlist -r change -l ant@example.com 'My List'
Note that you do not have to explicitly commit any database transactions, as
Mailman will do this for you (assuming no errors occured).
mailing list. You could put the following function in a file called
`change.py`:
def change(mlist, display_name):
mlist.display_name = display_name
and run this from the command line:
% mailman withlist -r change -l ant@example.com 'My List'
Note that you do not have to explicitly commit any database transactions, as
Mailman will do this for you (assuming no errors occured).
de uma lista de mala direta específica. Você pode colocar a seguinte
função em um arquivo chamado `change.py`:
def change(mlist, display_name):
mlist.display_name = display_name
e executá-lo na linha de comando:
% mailman withlist -r change -l ant@example.com 'My List'
Note que você não tem que submeter explicitamente nenhuma transação do
banco de dados, já que o Mailman fará isso para você (presumindo que
nenhum erro ocorreu).