[Zope] Problems with External Script
Florent Guillaume
fg@nuxeo.com
Mon, 4 Feb 2002 18:02:12 +0000 (UTC)
> > > If you want to interpolate variables into a string, you have to use
> "%s",
> > > not "%(something else)s". If that's not what you are trying to do, the
> > > expression % locals() isn't valid.
> >
> > Actually, that part *is* proper python.
> >
>
> Ah, the new syntax - I was thinking Python 1.5.2, as in pre-Zope 2.4.
It works in python 1.5.2 too.
print "%(foo)s" % {'foo': 'yo'}
Florent
--
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 10 http://nuxeo.com mailto:fg@nuxeo.com