[Distutils] PEP 438 - Transition Phase 1
Donald Stufft
donald at stufft.io
Sun May 19 22:20:43 CEST 2013
On May 19, 2013, at 4:08 PM, Tres Seaver <tseaver at palladion.com> wrote:
> Signed PGP part
> 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
>
>
> _______________________________________________
> Distutils-SIG maillist - Distutils-SIG at python.org
> http://mail.python.org/mailman/listinfo/distutils-sig
Hrm, ZPT doesn't seem to be stripping the CDATA or unescaping the strings?
https://gist.github.com/dstufft/5608838 is what i have in the template file and that appears verbatim in the output?
-----------------
Donald Stufft
PGP: 0x6E3CBCE93372DCFA // 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20130519/5e0bb332/attachment-0001.pgp>
More information about the Distutils-SIG
mailing list