[Zope] Security problem when accessing object instance in a product

Nicolas Évrard nicoe@wanadoo.be
Sat, 31 Aug 2002 15:07:19 +0200


--3V7upXqbjpZ4EhLz
Content-Type: text/plain; charset=iso-8859-15; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* Chris Withers  [14:33 31/08/02 CEST]:=20
>Nicolas =C9vrard wrote:
>>but I have declared headers public :
>>
>>class Message :
>>             security =3D ClassSecurityInfo()
>>      security.declarePublic('headers')
>
>have you done:
>
>Globals.InitializeClass(Message)
>
>...afterwards?

Finally, I got it working by doing so (thanks) and defining a method
headers to return the content of self.header

But now, my template looks like this
<TD tal:content=3D"python:item.headers()['from']">From</TD>
which is inestetic, but I guess I must carry on ...

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

--3V7upXqbjpZ4EhLz
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQE9cL+H1fJ5cz1/+2URAt1WAJoCSyQ/MotoN42VZWF9DN0CEp2XpwCglxe2
22uB9s2QBRZPSPjLRmiFVkg=
=dJhR
-----END PGP SIGNATURE-----

--3V7upXqbjpZ4EhLz--