I'm not sure; but I inherited some code that works like this: # Set the icon for the MyClass, because it doesn't act # like a regular object, so I can't use registerClass misc_ = { 'MyClassIcon': ImageFile('www/MyIcon.gif', globals()) } Apparently, in this case, the ID is constructed as <MyClassID>+'Icon'; because there is no corresponding icon=... statement anywhere. But, I can't find the Zope code that does this; so, I might be deceived. -- HTH -- Loren, also struggling to write a product ----- Original Message ----- From: Terry Kerr <terry@adroitnet.com.au> To: <zope@zope.org> Sent: February 22, 2000 04:29 PM Subject: [Zope] object icons
Hi,
How can I assign icons to objects within my product. I am only registering one container class in the __init__.py of the product, but want other objects within the product to have icons even tho they are only explicitly created and added by the product itself.
setting an icon='blah.gif' in the class doesn't work. I am having trouble working out what setting this attribute is actually doing.
terry
-- Terry Kerr (terry@adroitnet.com.au) Adroit Internet Solutions Pty Ltd (www.adroitnet.com.au) (03) 9888 8522 0414 938 124
_______________________________________________ Zope maillist - Zope@zope.org 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 )