[Zope] Tree tag problem

Igor Stroh stroh@scan-plus.de
08 Jul 2002 09:54:40 +0200


--=-RGKc6F0X86RyaRqtZHJW
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi Dennis,

On Fre, 2002-07-05 at 20:32, Dennis Allison wrote:
> <dtml-tree OUTER sort=3D"displayOrder">
> 	<dtml-var title_and_id>
> </dtml-tree>

[ ... ]

> 	Attribute Error:
> 	displayOrder
>=20
> with a reference in TreeTag.py where displayOrder is used in a getattr()
> call.   Are properties not attributes of an object?  What's the problem?

have you tried <dtml-tree OUTER sort=3DdisplayOrder> already? (without the
quotes)? Another option would be to define a method that retrieves
"displayOrder" from your objects and use sort_expr=3D"<methodName>"
instead.

HTH,
Igor

--=20
ScanPlus GmbH NOC Ulm - Germany - Griesbadgasse 7-13 - D 89073 Ulm
TEL +49 731 920 13 100 - FAX +49 731 920 13 290
eMail: support@scan-plus.de
Amtsgericht Ulm - HRB3220 - Geschaeftsfuehrer: Juergen Hoermann

--=-RGKc6F0X86RyaRqtZHJW
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQA9KUVA0gPMpf2mtqkRAmI9AKDLVuksUXl7vsXXxspgN/XaVvYv8gCfU0ds
bgVRqgNZDCqclhtHMh+tZoQ=
=d3V8
-----END PGP SIGNATURE-----

--=-RGKc6F0X86RyaRqtZHJW--