[Zope] Referring to objects with an integer as id?

Chris Withers chrisw@nipltd.com
Tue, 08 Aug 2000 16:04:11 +0100


Peter Arvidsson wrote:
> <dtml-var "pdf.11111111.getSize()"> (gives me syntax error)
> <dtml-var "pdf.[11111111].getSize()"> (gives me syntax error)
> <dtml-var "pdf.['11111111'].getSize()"> (gives me syntax error)
> <dtml-var "pdf._['11111111'].getSize()"> (says I am unauthorized but I
> am sure I am not because I could access the same object if I gave it a
> string as id instead of an integer. I am the owner of both the object
> and folder and I have all privilages. Superuser wasnt authorized
> either.)
> <dtml-var "pdf._[11111111].getSize()"> (also says I am unauthorized)

Urm:

<dtml-var "_.getattr(pdf,'11111111').getSize()">

cheers,

Chris

> I have also tried all those combinations with _len() but that doesnt
> work either...

that should be _.len() if at all...

cheers,

Chris