Re: [Mailman-Users] bug error when subscribing through webafterMailman 2.1.12 upgrade

2009-07-23 Thread Mark Sapiro
Christopher Adams wrote:

The modification to MailList.py is something that you suggested awhile
back and I had carried it through as Mailman was upgraded. Here is the
thread from 2005.

http://mail.python.org/pipermail/mailman-users/2005-January/042116.html

This time, it didn't seem to work and broke it.The problem was the
email sent to new list owners had the list address, but didn't
complete the actual address. Instead, it results in this:

Send list messages to:

   %(emailaddr)s

What is the actual solutilon to the template being populated with the
actual list address. This seems like something that would be assumed
to exist in an out of the box installation.


The problem with the modification is my fault. I said to add

   listinfo_url = self.getScriptUrl('listinfo', absolute=1)

but this is wrong. It needs to be

   listinfo_url = self.GetScriptURL('listinfo', absolute=1)

However, this has nothing to do with the mail sent to the owner of a
new list. This particular modification was to add a definition of
'listinfo_url' to the substitutions in the verify.txt template for the
confirmation message sent to someone subscribing when the policy
includes 'confirm'. The same modification is also required when the
verify.txt template is used for an address change confirmation.

Adding %(emailaddr)s to the newlist.txt template requires a different
modification to MailList.py.

-- 
Mark Sapiro m...@msapiro.netThe highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Users] bug error when subscribing through webafterMailman 2.1.12 upgrade

2009-07-23 Thread Christopher Adams
Mark,

Yes, you are correct. I realized that I was referring to the wrong fix
after sending my message. I certainly didn't want to insinuate that
you gave me bad information.

That aside, the question still stands. Why are these fixes needed to
force the templates to display as it seems they should be default?
What about a list adminstrator who doesn't have full run of the system
to make these fixes? An administrator who does have full run would
have to know some python and understand the way Mailman works on the
backend. I guess that is the hope for an adminstrator, isn't it?

On Thu, Jul 23, 2009 at 7:39 AM, Mark Sapirom...@msapiro.net wrote:
 Christopher Adams wrote:

The modification to MailList.py is something that you suggested awhile
back and I had carried it through as Mailman was upgraded. Here is the
thread from 2005.

http://mail.python.org/pipermail/mailman-users/2005-January/042116.html

This time, it didn't seem to work and broke it.The problem was the
email sent to new list owners had the list address, but didn't
complete the actual address. Instead, it results in this:

Send list messages to:

   %(emailaddr)s

What is the actual solutilon to the template being populated with the
actual list address. This seems like something that would be assumed
to exist in an out of the box installation.


 The problem with the modification is my fault. I said to add

           listinfo_url = self.getScriptUrl('listinfo', absolute=1)

 but this is wrong. It needs to be

           listinfo_url = self.GetScriptURL('listinfo', absolute=1)

 However, this has nothing to do with the mail sent to the owner of a
 new list. This particular modification was to add a definition of
 'listinfo_url' to the substitutions in the verify.txt template for the
 confirmation message sent to someone subscribing when the policy
 includes 'confirm'. The same modification is also required when the
 verify.txt template is used for an address change confirmation.

 Adding %(emailaddr)s to the newlist.txt template requires a different
 modification to MailList.py.

 --
 Mark Sapiro m...@msapiro.net        The highway is for gamblers,
 San Francisco Bay Area, California    better use your sense - B. Dylan





-- 
Christopher Adams
adam...@gmail.com
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9