All Zope object's have an id string attribute or a method called 'id'.
In the case of Zope File and Image objects, 'id' is a function which means you have to do this::

file_id = context.some_file_object.id()
assert same_type(file_id, 'strrrrr')

Why it is so I have absolutely no idea.

Allen Huang wrote:
I using a python program that create thumbnails that I upload into zope. But the problem is that my program wants to recieve string values and apparently zope object id is not. can anyone help with this? How do I convert zope object id into string values?

------------------------------------------------------------------------
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail Beta. <http://us.rd.yahoo.com/evt=42297/*http://advision.webevents.yahoo.com/handraisers>


------------------------------------------------------------------------

_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to