Ignore:
Timestamp:
Apr 30, 2010 12:53:17 PM (11 years ago)
Author:
mylan
Message:

#151: fix bug in pinging prevention for test/development modes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/utils.py

    r1623 r2246  
    55from OFS.ObjectManager import BadRequestException 
    66 
    7 from quintagroup.plonegooglesitemaps.config import testing 
     7from quintagroup.plonegooglesitemaps import config 
    88 
    99def ping_google(url, sitemap_id): 
     
    1212    resurl = url + "/" + sitemap_id 
    1313 
    14     if DevelopmentMode or testing: 
     14    if DevelopmentMode or config.testing: 
    1515        #prevent pinging in debug or testing mode 
    1616        print "Pinged %s sitemap to Google" % resurl 
Note: See TracChangeset for help on using the changeset viewer.