[Zope] Page template, acquisition and friends ...
Nicolas Évrard
nicoe@wanadoo.be
Mon, 29 Jul 2002 23:57:31 +0200
--YiEDa0DAkWCtVeE4
Content-Type: text/plain; charset=iso-8859-15; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hello everyone,
This is my first post to this mailing-list, and I wish to say that I
find Zope incredibly usefull ... it makes me do my very first website.
Any way, I've got a python module which parse a file containing recipes,
I asume I'll write an ExternalMethod that will take an argument and
return a structire (a dictionnary) with all the relevant informations.
I did a small page template that show all these informations.
What I want to do is to show the recipe by calling this url :
GetRecipe/My Recipe/show_recipe.zpt (I suppose I'll have to encode the
space too).
is this possible ?? I tried with a python script (returning a
dictionnary) but it did not work ...
BTW :=20
I suppose I can do something like
<span tal:define=3D"recipe python:here.GetRecipe('My Recipe')">
<p tal:content=3D"recipe/yield>yield</p>
...
</span>
But I find it not elegant ... and it wouldn't generate easyly the list
of all the recipe ...
Happy pythoning, happy zoping ...
--=20
(=B0> Nicolas =C9vrard
/ ) Li=E8ge - Belgique
^^
--YiEDa0DAkWCtVeE4
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9RbpL1fJ5cz1/+2URAvriAJsFaiMl3UCxLVj7BUH85YWE1KB9OgCgiIkg
fXOSyd73Pv8MjLSy0FTqFos=
=VbsN
-----END PGP SIGNATURE-----
--YiEDa0DAkWCtVeE4--