Logo Search packages:      
Sourcecode: zope-emarket version File versions

__init__.py

__doc__='''EMarket

$Id: __init__.py,v 1.11 2000/10/07 12:57:53 steve Exp $'''

__version__='$Revision: 1.11 $'[11:-2]

from ImageFile import ImageFile

# Import the module containing product-specific objects that are
# made available in folders.

import EMarket

# Product meta-data:

# Names of objects added by this product:

def initialize(context):

    import Products

    context.registerClass(
        EMarket.EMarket,
        permission='Add EMarkets',
        constructors=(EMarket.addEMarketForm,
                      EMarket.addEMarket),
        icon='emarket.gif',
        )

    found_count = 0
    
    new_products_meta_types = []
    
    for index in range(len(Products.meta_types)):
        if Products.meta_types[index]['name'] == EMarket.EMarket.meta_type:
            found_count = found_count + 1
            if found_count == 1:
                new_products_meta_types.append( Products.meta_types[index] )
        else:
            new_products_meta_types.append( Products.meta_types[index] )

    Products.meta_types = tuple( new_products_meta_types)

misc_={
    'wampumbox' : ImageFile('wampumbox.gif', globals()),
    }

Generated by  Doxygen 1.6.0   Back to index