>>>>> "GM" == Gergely Madarasz <gorgo(a)caesar.elte.hu> writes:
GM> I'd like to see something like that too... for a Hungarian
GM> translation :)
Actually, my architecture should be expanded a bit to make it work for
multiple languages. Currently, there's a function called maketext()
in the Utils module that takes a relative filename and a dictionary.
The file is pulled out of the templates directory and contains %(key)s
for interpolation of the dict.
…
[View More]What we'd probably want to add are subdirs inside of templates for the
various languages. Then each list would have to have a language
option which would get passed to Utils.maketext() so that it could
select the appropriate file to use (e.g. templates/en/cronpass.txt
would the be English text, templates/hu/cronpass.txt would the be
Hungarian, etc.).
-Barry
[View Less]
Hello!
I have problems with mailpasswds... first it did not work because of this
line:
url = list.GetOptionsURL(user)
I changed it to:
url = list.GetAbsoluteOptionsURL(user)
Now it starts (the text is a bit misplaced in the mails it sends), but
forks too many times (I have two lists, 500 and 120 subscribers):
Traceback (innermost last):
File "/var/lib/mailman/cron/mailpasswds", line 114, in ?
main()
File "/var/lib/mailman/cron/mailpasswds", line 111, in main
…
[View More] MailAllPasswords(list, users)
File "/var/lib/mailman/cron/mailpasswds", line 78, in MailAllPasswords
list.SendTextToUser(subject = subj,
File "/usr/lib/mailman/Mailman/mm_deliver.py", line 105, in SendTextToUser
mm_utils.SendTextToUser(subject, text, recipient, sender,
File "/usr/lib/mailman/Mailman/mm_utils.py", line 145, in SendTextToUser
DeliverToUser(msg, recipient, add_headers=add_headers)
File "/usr/lib/mailman/Mailman/mm_utils.py", line 158, in DeliverToUser
if os.fork():
os.error: (11, 'Resource temporarily unavailable')
There should be a better way to handle these mails... either to have a
better mailing algorithm, or to handle this error, wait for a minute, then
continue.
Greg
--
Madarasz Gergely gorgo(a)caesar.elte.hu gorgo(a)linux.rulez.org
It's practically impossible to look at a penguin and feel angry.
Egy pingvinre gyakorlatilag lehetetlen haragosan nezni.
HuLUG: http://www.cab.u-szeged.hu/local/linux/
[View Less]