[Zope3-dev] Re: RFC: TALES adapters and TAL/Tales variable namespaces

Stuart Bishop stuart at stuartbishop.net
Thu May 27 11:09:33 EDT 2004


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


On 27/05/2004, at 12:02 PM, Jim Fulton wrote:

> Stuart Bishop wrote:
>
>> If we want to use a concrete example for this, getSession will be
>> replaced with an Adaptor (which wasn't possible when it was written).
>> <input name="key" tal:attributes="value
>>     IObjectSessionData*request/product.id/key | nothing" />
>
> Note that no one has sugested this so far. Perhaps you meant:
>
>  <input name="key" tal:attributes="value
>      request*IObjectSessionData/product.id/key | nothing" />

Yup

>> <input name="key" tal:attributes="value
>>     adapt/IObjectSessionData(request)/product.id/key | nothing" />
>
> Not sure what you meant by "adapt" in this.

 From one of the previous suggestions - stick all the adaptors
under some sort of root object to avoid polluting the main
namespace. Although I guess the full spelling would be
adapt/zope.app.session.interfaces.IObjectSessionData or something
silly like that, so it might not be a particularly good idea ;)

- --  
Stuart Bishop <stuart at stuartbishop.net>
http://www.stuartbishop.net/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)

iD8DBQFAtgSxAfqZj7rGN0oRAv8CAJ9/vV/0n/5JuASjvFmucNQHtxmQhwCdEpGZ
M7hFcWqtE3QaSXasU58ycq8=
=psht
-----END PGP SIGNATURE-----




More information about the Zope3-dev mailing list