[Zope] Re: List of attributes

Tres Seaver tseaver at palladion.com
Mon Jun 25 10:55:05 EDT 2007


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

Garito wrote:
> Hi all!
> 
> Is it possible to use tal:attributes with a dictionary or something like
> this?
> 
> I would like to change/add attributes to a HTML object in a list or a dict
> like:
> 
> <tal:b tal:define='atributos python: {'href': '
> http://blogs.sistes.net/Garito', 'target': '_blank', 'myCustomAttribute':
> 'Value1'}
> <a href="http://www.sistes.net" tal:attributes='atributos'>I'm a link!</a>

No, that is not possible.  The semantics of 'tal:attributes' are defined
in the spec for TAL, which is here:

  http://wiki.zope.org/ZPT/TALSpecification14


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGf9dJ+gerLs4ltQ4RAsSaAKCER42ardUq35PDr+ThqXHJCpRMwACeLM8X
4CbqyGSFCcClLmuT+S7zC0M=
=NMH4
-----END PGP SIGNATURE-----



More information about the Zope mailing list