[Distutils] PEP 438 - Transition Phase 1

Tres Seaver tseaver at palladion.com
Sun May 19 22:08:08 CEST 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/19/2013 10:49 AM, Donald Stufft wrote:
>>> I would be glad to update all my packages to explicit mode, but
>>> would prefer to be able to do that in a single batch (clicking
>>> through to 250 or so to set it will be tedious).  It would be good
>>> to automate removing all external URLs previously sniffed from the
>>> long-description, too.

> Yea, as soon as I figure out how to embed arbitrary javascript into a
> zope.pagetemplate there will be a toggle checked for all thing.

You can inline Javascript into a '<script type="text/javascript">' tag in
ZPT:  you do need to XML-escape '&', '<', and '>' (as with any XHTML).
Or you can wrap the content of the '<script>' tag in CDATA markers.

If you need to pass a value from the template's namespace into the
Javascript namespace of the document, you can use the following idiom:

  <script  type="text/javascript"
           tal:content="string:var foo = '${context/bar}'></script>

at which point other scripts can use 'foo'.


Tres.
- -- 
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEARECAAYFAlGZMSgACgkQ+gerLs4ltQ6MfQCeMtOF8H2T8AA6wbKmVAWayf8x
4vsAn0ArlbIoCDEZkHgHM1UhFaCr65Sy
=Hrdn
-----END PGP SIGNATURE-----



More information about the Distutils-SIG mailing list