[Zope] Icons in a product

Andrew Kenneth Milton akm@mail.theinternet.com.au
Sat, 9 Sep 2000 11:44:13 +1000


+-------[ Petr Knapek ]----------------------
| >>>>> On Fri, 8 Sep 2000 23:18:40 +1000, Andrew Kenneth Milton <akm@mail.theinternet.com.au> said:
| 
| Hi Andrew,
| thank you very much for quick answer but I it doesn't work because
| in my __init__.py I register the product with the initialize(context)
| function.

It doesn't go inside your initialize function, sorry about that.

It's a 'global' variable in your __init__.py

etc..

misc_={
    'subagency': ImageFile('subagency.gif',globals()), #little
    'SubAgencyIcon': ImageFile('SubAgency.gif',globals()), #big
    'agent': ImageFile('agent.gif',globals()),
    'company': ImageFile('company.gif', globals()),
    'CompanyIcon': ImageFile('CompanyIcon.gif',globals()),
    'client': ImageFile('client.gif',globals()),
    'ClientIcon':ImageFile('ClientIcon.gif',globals()),
    }

def initialize(context):

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd          |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068    |akm@theinternet.com.au|