mailman forms (was: devel list sign up problems
"Aaron S. Hawley" <[email protected]> Fri, 23 Jul 2004 16:54:33 -0400 (EDT)
| Newsgroups | gmane.org.ballistichelmet.devel |
|---|---|
| Organization | University of Vermont |
| Message-ID | <[email protected]> |
the form target on the mailman interface is ballisthelmet.org, so "clicks" on the submit button get posted to phpwh (www.ballistichelmet.org) not your.ballistichelmet.org. but you are being redirected back to the helmet, without the post data. thus a "no address entered" error. quite an awful set up to say the least. based on the Mailman source code, it appears that the admin page is being generated by: Mailman/Cgi/admin.py - the HTML form action attribute is being determined by the variable "adminurl", which is set on line 384 of the above file, admin.py. - this "adminurl" variable is passed with the call to MailList::GetScriptURL(). - this function, found on line 226 of Mailman/MailList.py, refers to the value in self.web_page_url and passes it to Utils::ScriptURL() - self.web_page_url is defined on line 296 of Mailman/MailList.py in the MailList::InitVars() procedure. - the value of that variable is set by mm_cfg.DEFAULT_URL or to mm_cfg.DEFAULT_URL_HOST - these members of the "mm_cfg" module are determined by the mailman configuration found in the file /etc/mailman/mm_cfg.py. the mentioned settings are: DEFAULT_HOST_NAME = 'your.ballistichelmet.org' DEFAULT_URL = 'http://your.ballistichelmet.org/mailman/' obviously something fishy going on there. - the call to Utils::ScriptURL(), found on line 227 of Mailman/Utils.py, is intriguing because if the web_page_url argument is empty it simply makes a call to get_domain(). thus the "ballistichelmet.org" we're seeing. but i've removed the call and came up with the brilliant solution of just hard-coding the string-value "your.ballistichelmet.org", and then installed the source. no change, though. sigh. by the way the entier Mailman source code is here on helmet: /usr/local/src/mailman-2.1.4/ you can install it by doing dpkg-buildpackage then doing dpkg -i on the create .deb file. have fun. /a p.s. Python's namespace operator is not "::" but is actually the dereference/record-access operator "." On Fri, 23 Jul 2004, David Van Horn wrote: > I just tried to sign up mr. miller on the devel list sign up page: > > http://your.ballistichelmet.org/mailman/listinfo/devel > > but the form says i haven't entered an address when indeed i have. > > is this another incarnation of the form target problems we are having? > > any work-around for this? mrs. pratt would like to join as well. > > Also, I did some touch up work on the homepage. Let me know if there are any > changes you think should be made. I really dislike writing about BH, so that > was the best i could do in <3 minutes. comments extremely welcome. > > /d