--- downloads/moin-1.3.5/MoinMoin/macro/MonthCalendar.py 2005-07-17 15:22:37.000000000 +0100 +++ websites/MonthCalendar.py 2005-10-10 02:45:03.000000000 +0100 @@ -140,11 +140,11 @@ calendar and not have to re-enter each year. """ -Dependencies = ['namespace','time'] +Dependencies = ['namespace','time','string'] from MoinMoin import wikiutil from MoinMoin.Page import Page -import re, calendar, time +import re, calendar, time, string # The following line sets the calendar to have either Sunday or Monday as # the first day of the week. Only SUNDAY or MONDAY (case sensitive) are @@ -470,6 +470,10 @@ tipname = link tiptitle = link tiptext = '
'.join(titletext) + + # escape quotes which interfere with javascript + tiptext = string.replace(tiptext,"'","\\'") + maketip_js.append("maketip('%s','%s','%s');" % (tipname, tiptitle, tiptext)) onmouse = '''onMouseOver="tip('%s')" onMouseOut="untip()"''' % tipname else: