Ignore:
Timestamp:
Sep 15, 2010 5:54:50 PM (9 years ago)
Author:
mylan
Message:

#230: Added module aliases - prevent breakage sitemap, created with qPloneGoogleSitemaps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonegooglesitemaps/branches/migratioin_product/quintagroup/plonegooglesitemaps/__init__.py

    r1617 r2826  
     1import sys 
    12from AccessControl import allow_module 
    23 
     
    5152            extra_constructors = (constructor,), 
    5253            ).initialize(context) 
     54 
     55    # 
     56    # BBB: Create qPloneGoogleSitemaps module alias 
     57    from quintagroup import plonegooglesitemaps 
     58    from quintagroup.plonegooglesitemaps import interfaces 
     59    from quintagroup.plonegooglesitemaps.content import sitemap 
     60    # from quintagroup.plonegooglesitemaps import Extensions 
     61    # from quintagroup.plonegooglesitemaps.Extensions import Install 
     62    for k,v in ( 
     63            ('Products.qPloneGoogleSitemaps', plonegooglesitemaps), 
     64            ('Products.qPloneGoogleSitemaps.config', config), 
     65            ('Products.qPloneGoogleSitemaps.interfaces', interfaces), 
     66            ('Products.qPloneGoogleSitemaps.content.sitemap', sitemap), 
     67            # ('Products.qPloneGoogleSitemaps.Extensions', Extensions), 
     68            # ('Products.qPloneGoogleSitemaps.Extensions.Install', Install), 
     69        ): 
     70        if not sys.modules.has_key(k): 
     71            sys.modules[k] = v 
     72 
Note: See TracChangeset for help on using the changeset viewer.