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

2000-08-08 Thread Chris Withers

Peter Arvidsson wrote:
>  (gives me syntax error)
>  (gives me syntax error)
>  (gives me syntax error)
>  (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.)
>  (also says I am unauthorized)

Urm:



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

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




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

2000-08-08 Thread Peter Arvidsson

How do I refer to an object that has an integer as id?

I have pdf-files stored in a folder called "pdf". Now I want to be able
to check their filesize. I looked in the API and found that this is done
with getSize(self). I have no problem to refer to objects that do not
have an integer as id. For example for the pdf-file with id "temppdf"
this works: 

I have tried a number of different syntaxes to be able to check the
filesize of an objct with an integer as id but nothing has worked
For the pdf-file with id "" I have tried this:

 (gives me syntax error)
 (gives me syntax error)
 (gives me syntax error)
 (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.)
 (also says I am unauthorized)

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

Could someone please tell me how I can get the filesize of my objects
with integers as their id?


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )