# HG changeset patch # User Paul Boddie # Date 1373985174 -7200 # Node ID 61aca5e607f5e93b745cfdf8897f45abbfa751a6 # Parent 4765fa33c89125d8b931bf5650a6d1528f96c401 Handled non-string values provided as macro arguments. diff -r 4765fa33c891 -r 61aca5e607f5 MoinForms.py --- a/MoinForms.py Tue Jul 16 16:26:35 2013 +0200 +++ b/MoinForms.py Tue Jul 16 16:32:54 2013 +0200 @@ -790,7 +790,7 @@ quoted = [] for name, value in args: - value = value.replace('"', '""') + value = unicode(value).replace('"', '""') if name is None: quoted.append('"%s"' % value) else: