[Zope] Simple Comparison - How to find the Template you are in in a list of all files in a directory

Passin,Thomas B. (Tom) tpassin@mitretek.org
Thu, 12 Sep 2002 13:39:06 -0400


[ Edward Pollard]
>=20
> I've been attempting to iterate through the list and then compare the=20
> file ID of the item in the repeat loop with the file ID of=20
> the template=20
> using 'cmp'. I cannot get cmp to return 0 even when the names are the=20
> same (as evaluated by displaying them in the template).
>=20
> Is this the incorrect way to compare strings? Is there a=20
> better way to=20
> do this?
>=20

if a=3D=3Db: #do something

Cheers,

Tom P