DongInn Kim writes:

 > Can anyone please help me to debug the syntax error in mm_cfg.py?
 > 
 > ompi_list = [ 'test-crest', 'osl-test' ]
 > if listname in ompi_list:
 >     archive_url = 
 > ("http://www.open-mpi.org/community/lists/devel/%s/date.php"; % 
 > (time.strftime("%Y/%m")))
 >     DEFAULT_MSG_FOOTER = """_______________________________________________
 > %(real_name)s mailing list
 > %(real_name)s@%(host_name)s
 > subscribe: %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
 > searchable archives: %(archive_url)s
 > """  % { 'archive_url' : archive_url }
 > 
 > 
 > What I wanted here is to apply the new DEFAULT_MSG_FOOTER only for
 > the specific mailing lists.  Is there something wrong here? 

It would help if you report the whole error that you're seeing, or if
you're not able to find the error message, precisely what behavior
leads you to think something's wrong.

I'm guessing that the problem is that you have a large number of
format elements without corresponding values to interpolate in the
format string for DEFAULT_MSG_FOOTER.  Double all of the '%'
characters except that corresponding to archive_url and you'll
probably get the result you want.




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

Reply via email to