Changeset 1728 in products


Ignore:
Timestamp:
Feb 12, 2010 1:37:19 PM (14 years ago)
Author:
mylan
Message:

Add flag for turn-on/off catalog updating. By default set to False. Update INSTALLATION file with cataog updating instructions

Location:
quintagroup.plonegooglesitemaps/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonegooglesitemaps/trunk/docs/INSTALL.txt

    r1642 r1728  
    5252 
    5353* Install ``Plone Google Sitemaps`` with Quickinstaller in Plone (Site Setup -> Add/Remove Products)  
     54 
     55 
     56IMPORTANT 
     57--------- 
     58 
     59* After installation portal_catalog rebuild needed. 
     60  By default catalog NOT rebuilded. You may rebuild catalog in 2 ways: 
     61   ** by hand: go to /<plone instance id>/portal_catalog/manage_catalogAdvanced 
     62       and push *Update* button. 
     63   ** allow catalog rebuilding on quintagroup.plonegooglesitemap installation. 
     64      For that - set *UPDATE_CATALOG* property to *True* in 
     65      quintagroup.plonegooglesitemaps.config python module. 
  • quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/config.py

    r1593 r1728  
    2626else: 
    2727    IS_PLONE_3 = True 
     28 
     29# Turn-ON/OFF portal_catalog 
     30# updating on product installation 
     31UPDATE_CATALOG = False 
  • quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/setuphandlers.py

    r1727 r1728  
    66from Products.ZCatalog.ProgressHandler import ZLogHandler 
    77 
     8from config import UPDATE_CATALOG 
     9 
    810logger = logging.getLogger('quintagroup.seoptimizer') 
    911 
     
    1113    """ Update Catalog to collect data for canonical_path metadata. 
    1214    """ 
    13     if context.readDataFile('plonegooglesitemap_install.txt') is None: 
     15    if not (context.readDataFile('plonegooglesitemap_install.txt') is not None \ 
     16            and UPDATE_CATALOG): 
    1417        return 
    1518 
Note: See TracChangeset for help on using the changeset viewer.