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.
--On 20. August 2006 21:08:01 -0700 Allen Huang <swapp0@yahoo.com> 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?
Please rephrase this question. After reading three times I still have no idea what you mean. -aj
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
--On 21. August 2006 11:12:38 +0100 Peter Bengtsson <peter@fry-it.com> wrote:
All Zope object's have an id string attribute or a method called 'id'.
You should *always* use the *official* API method: getId() - nothing else! -aj
participants (3)
-
Allen Huang -
Andreas Jung -
Peter Bengtsson