[Mailman-Developers] create.py: passing form values by URL

Pierre-Marc Fournier pierre-marc.fournier at polymtl.ca
Tue Sep 12 02:17:00 CEST 2006


Hello,

At our site, we have a web page with a form that users fill to request a
new mailing list. If that mailing list gets approved, the admins use
Mailman's create.py to effectively create it.

A trivial patch allows the approval system (or any script) to pass the
list name, owner, etc to create.py via the url, and have the create form
already filled with those values, leaving only the password for the
administrators to enter. This removes the need for a lot of copy-pasting
into the create.py form and saves time.

Here is the patch. I suggest that it be integrated in Mailman, as it
would enable everyone to use a similar system easily.

pmf




-------------- next part --------------
--- create.py.orig	2006-08-23 12:48:15.213282750 -0400
+++ create.py	2006-08-23 13:39:24.585106500 -0400
@@ -58,7 +58,7 @@
         request_creation(doc)
     else:
         # Put up the list creation request form
-        request_creation(doc)
+        request_creation(doc, cgidata)
     doc.AddItem('<hr>')
     # Always add the footer and print the document
     doc.AddItem(_('Return to the ') +






More information about the Mailman-Developers mailing list