Re: [Mailman-Developers] Adding keys in the configuration file
Why do you think that the configuration of HK should be a part of the MM core? Like the Postorius configuration UI, HK is supposed to be a separable part of the overall system which is possibly running on an entirely separate host machine. As such, its daemon would be configured and operated as a distinct service. The linkage between the two systems should be in the form of a single reference.
On Sep 13, 2012, at 2:19 AM, Aurelien Bompard wrote:
Hi people,
I'm working on HyperKitty, and I've understood that I need to add this section to mailman.cfg to enable it :
[archiver.hyperkitty] class: hyperkitty.lib.archiver.Archiver enable: yes base_url: http://hyperkitty.example.com
That works well. However, I need another key to specify the location to HK's configuration file (Django's settings.py). I've tried simply adding the key, but it's not picked up by the configuration class, probably because of the schema validation. Is there a way I could add this configuration key ? Maybe via another section, or another file ?
Thanks !
Aurélien
Mailman-Developers mailing list Mailman-Developers@python.org http://mail.python.org/mailman/listinfo/mailman-developers Mailman FAQ: http://wiki.list.org/x/AgA3 Searchable Archives: http://www.mail-archive.com/mailman-developers%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-developers/richard%40nfsnet.o...
Security Policy: http://wiki.list.org/x/QIA9
Why do you think that the configuration of HK should be a part of the MM core?
I didn't intend to put all of HK's config in mailman.cfg of course. But I'm supposed to reference a class in the archiver.hyperkitty section, which will be imported on startup, so it must be on the same host. Since there are already archiver-specific configuration keys there, like a command to run or an email address to forward to, I supposed it would be OK to add a "conffile" key that I could use.
So what's the best way ? Add a "conf_file" key to schema.cfg ? Something else, maybe more extendable ?
Thanks. Aurélien
participants (2)
-
Aurelien Bompard
-
Richard Wackerbarth