[Zope] Page template, acquisition and friends ...

Nicolas Évrard nicoe@wanadoo.be
Thu, 1 Aug 2002 10:44:00 +0200


--82I3+IH0IqGh5yIs
Content-Type: text/plain; charset=iso-8859-15; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* Dieter Maurer  [23:20 31/07/02]:=20
>=3D?iso-8859-1?Q?Nicolas_=3DC9vrard?=3D writes:
> > 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.
> >=20
> > 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 expect, your ExternalMethod is "GetRecipe" ?

Right, that's my first choice. A product seems too much in this case.

>
> > I did a small page template that show all these informations.
> >=20
> > What I want to do is to show the recipe by calling this url :
> >=20
> > GetRecipe/My Recipe/show_recipe.zpt (I suppose I'll have to encode the
> > space too).
> >=20
> > is this possible ??
>If you answer my question above with "yes", my answer will be "no", it is
>not possible.

Maybe with a product

>"GetRecipe" must be a "traversable" object for "GetRecipe/My_Recipe" to
>work. It might be done with a Python Script and its "traversal_subpath"
>feature. Read about it in (e.g.) the Zope Book.

Or I can use an ExternalMethod which get the information and a script to
ease the interface with the zpt. Not elegant tough ... (Is it good
english ??)

>It is not very easy, maybe not the best starting task.

Yep, I know but I've already done some stuff and that's the next one on
my agenda. I could maybe pass to another task to get XP but interfacing
with my python Module seemed fairly easy.

The problem is : I want elegance, I'll struggle to have it. Maybe a
product will help ...

--=20
(=B0>  Nicolas =C9vrard
/ )  Li=E8ge - Belgique
^^

--82I3+IH0IqGh5yIs
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9SPTQ1fJ5cz1/+2URAhDKAKCmBGgZ7RoOHTuXgbbZjQsl+ksNHgCeLfbH
h19mlvTCspbQIKh0SFrsPTw=
=HYb+
-----END PGP SIGNATURE-----

--82I3+IH0IqGh5yIs--