[Zope] how to display hex data ?

Kai Hofmann hofmann@isl.org
Fri, 6 Apr 2001 11:57:17 +0200


> I'm trying to display hex values without success.

>       OID        DISTRETTO
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=
=3D
> a200000002000100 I10500
> a200000002000200 I10500
> a200000002000300 I10500
> a200000002000400 I10500
> a200000002000500 I10500
> a200000002000600 I10500

I am a stupid beginner, but I would try something like

<dtml-var .... fmt=3D"%x">

because it seems that C-style printf formatting is supported - if this do=
es not=20
work, because ZOPE/python supports only 2-digi hex-values - then try to c=
ut=20
your larger numbers into smaller one by "/ $100"

Kai

--=20
Institut f=FCr Seeverkehrswirtschaft und Logistik   http://www.isl.org/
Dipl.-Inform. Kai Hofmann                       mailto:hofmann@isl.org
Universitaetsallee GW1 Block A                   phone:+49 421 22096-83
D-28359 Bremen                                     fax:+49 421 22096-55