[Zope] Generating unique keys

Michel Pelletier michel@digicool.com
Mon, 11 Oct 1999 10:24:17 -0400


gtk wrote:

> Here's something wierd, though:
> 
>     <dtml-var expr="md5er(id)">
> 
> ... gives me an error:
> 
>     Error Type: TypeError
>     Error Value: read-only buffer, Python Method
> 
> Any suggestions?

'id' is sometimes an attribute, sometimes a method, and sometimes a
'computed attribute'.  In this case, you need to call 'id' with 'id()'.

-Michel