Re: [Mailman-Users] Digging deeper into Python
At 07:09 AM 9/19/2003, you wrote: * Paul H Byerly [EMAIL PROTECTED] [20030919 07:43]: wrote: Follow up on my last post. I went to MailList.py and added a new function to give me the URL with the trailing slash. Now all is good. Paul, who is going to have to find time to actually LEARN Python Paul, could you please send me a diff? Go to to MailList.py, back it up, then pico -w and search for GetScriptURL. Paste the following code in below that function: def GetScriptTwoURL(self, scriptname, absolute=0): return Utils.ScriptURL(scriptname, self.web_page_url, absolute) + \ '/' + self.internal_name() + '/' Then go to listinfo.py, back it up, and pico -w. Search for the two entries of colspan=2 and changed to colspan=3. Then search for GetScriptURL and add the middle line in what is below: [Link(mlist.GetScriptURL('listinfo'), Bold(mlist.real_name)), Link(mlist.GetScriptTwoURL('private'), Bold(mlist.real_name)), mlist.description or Italic(_('[no description available]'))]) Restart mailman and you should have direct links to the archives in the list of lists page. Edit the table headers and explanatory text to your tastes. You can see mine at http://svr01.thcwd.com/mailman/listinfo. You can also join the mm-p-f-a list to see my beta 2.1 of a system to allow posting from the archives with a verified e-mail address as sender. Paul Paul -- Mailman-Users mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ This message was sent to: [EMAIL PROTECTED] Unsubscribe or change your options at http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Re: [Mailman-Users] Digging deeper into Python
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul H Byerly wrote: Then go to listinfo.py, back it up, and pico -w. Search for the two entries of colspan=2 and changed to colspan=3. Then search for GetScriptURL and add the middle line in what is below: [Link(mlist.GetScriptURL('listinfo'), Bold(mlist.real_name)), Link(mlist.GetScriptTwoURL('private'), Bold(mlist.real_name)), mlist.description or Italic(_('[no description available]'))]) Maybe I'm missing something, but won't this fail for public archives? It seems like it would be better to use GetBaseArchiveURL() to get the lists archive url. It's less typing too since you don't have to add another method. Correct me if I'm missing something about what you're trying to do which requires you to create the archive url with another method instead of using the existing GetBaseArchiveURL(). - -- Todd OpenPGP - KeyID: 0xD654075A | URL: www.pobox.com/~tmz/pgp Courage is not the absence of fear, but rather the judgment that something else is more important than fear. -- Ambrose Redmoon -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.3 (GNU/Linux) Comment: When crypto is outlawed bayl bhgynjf jvyy unir cevinpl. iD8DBQE/a5Rtuv+09NZUB1oRAjXyAKDfFMibYN+UvIJrcNSjvoNh7OmeiACg9cgo 1uyN6VGP8Wn2e6eLap0TY8M= =IjpC -END PGP SIGNATURE- -- Mailman-Users mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ This message was sent to: [EMAIL PROTECTED] Unsubscribe or change your options at http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Re: [Mailman-Users] Digging deeper into Python
Todd wrote: Paul H Byerly wrote: Then go to listinfo.py, back it up, and pico -w. Search for the two entries of colspan=2 and changed to colspan=3. Then search for GetScriptURL and add the middle line in what is below: [Link(mlist.GetScriptURL('listinfo'), Bold(mlist.real_name)), Link(mlist.GetScriptTwoURL('private'), Bold(mlist.real_name)), mlist.description or Italic(_('[no description available]'))]) Maybe I'm missing something, but won't this fail for public archives? Yes, I realized that earlier today while mussing over it. I currently have no public archives, which is why I'd not though of it sooner. I was going to change anyway since I'd rather not add a new function if I can avoid it - staying with stock files is better. It seems like it would be better to use GetBaseArchiveURL() to get the lists archive url. I've made the change, and it does add the needed trailing slash. Thanks. Correct me if I'm missing something about what you're trying to do which requires you to create the archive url with another method instead of using the existing GetBaseArchiveURL(). I'm still learning, and I did not realize I was recreating the wheel. Paul -- Mailman-Users mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ This message was sent to: [EMAIL PROTECTED] Unsubscribe or change your options at http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
[Mailman-Users] Digging deeper into Python
Follow up on my last post. I went to MailList.py and added a new function to give me the URL with the trailing slash. Now all is good. Paul, who is going to have to find time to actually LEARN Python -- Mailman-Users mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ This message was sent to: [EMAIL PROTECTED] Unsubscribe or change your options at http://mail.python.org/mailman/options/mailman-users/archive%40jab.org