Hi All, Is it possible to render DTML methods inside a slot of a ZPT? If so, how would I achieve this? My DTML's render forms to submit/edit data in a MySQL database something which cannot be done as easily in ZPT, I believe. Correct me if I'm wrong. Jon
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jonathan Bowlas wrote:
Hi All,
Is it possible to render DTML methods inside a slot of a ZPT? If so, how would I achieve this?
<div tal:replace="structure context/some_dtml_method" />
My DTML's render forms to submit/edit data in a MySQL database something which cannot be done as easily in ZPT, I believe. Correct me if I'm wrong.
It should be relatively simple to do given a combination of ZPT and some Python to set up the data (either a Five view or a PythonScript). Tres. - -- =================================================================== Tres Seaver +1 202-558-7113 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEkbmm+gerLs4ltQ4RAqomAKCplVycyyEUm64KO2kn/WvfH6uzZgCgikMy 6PNoxAJ9VweOnqZwWokctPM= =RcgZ -----END PGP SIGNATURE-----
and how can we transfer the namespace of the current zpt doing : <div tal:replace="structure context/some_dtml_method" /> as we do in dtml writing : <dtml-var some_dtml_method> ? 2006/6/15, Dieter Maurer <dieter@handshake.de>:
Jonathan Bowlas wrote at 2006-6-15 14:05 +0100:
... Is it possible to render DTML methods inside a slot of a ZPT? If so, how would I achieve this?
<XXX metal:fill-slot="slot" tal:content="structure your_dtml_method" />
-- Dieter _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
-- Thomas Desvenain Junior Plone/Zope, Looking for a Job ! Now, trainee at Institut National de Recherche Agronomique Mathématiques, Informatique et Génôme laboratory 78350 Jouy en Josas 0134652943
thomas desvenain wrote:
and how can we transfer the namespace of the current zpt doing :
<div tal:replace="structure context/some_dtml_method" />
as we do in dtml writing :
<dtml-var some_dtml_method>
If it doesn't automatically you can most likely just write: <div tal:replace="structure python.context.some_dtml_method(here, request, **options)" /> -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science Phone: +45 66 11 84 94 Mobile: +45 29 93 42 96
Max M wrote at 2006-6-16 11:01 +0200:
thomas desvenain wrote:
and how can we transfer the namespace of the current zpt doing :
<div tal:replace="structure context/some_dtml_method" />
as we do in dtml writing :
<dtml-var some_dtml_method>
If it doesn't automatically you can most likely just write:
Path expressions do it automatically. -- Dieter
participants (5)
-
Dieter Maurer -
Jonathan Bowlas -
Max M -
thomas desvenain -
Tres Seaver