Changeset 436 in products for qPingTool


Ignore:
Timestamp:
Jul 31, 2006 2:44:01 PM (18 years ago)
Author:
crchemist
Message:

Fix an error in PingTool?.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • qPingTool/trunk/PingTool.py

    r29 r436  
    8181        ) + ATFolder.manage_options 
    8282 
    83     manage_overview = PageTemplateFile(os.path.join('www','overview'), globals()) 
    84     manage_overview.__name__ = 'manage_overview' 
    85     manage_overview._need__name__ = 0 
     83    manage_overview = PageTemplateFile(os.path.join('www', 'overview'), globals(), __name__='manage_overview') 
    8684 
    8785    def pingFeedReader(self,context): 
     
    10199            url = canonical_url + url 
    102100        else: 
     101            status = 'failed' 
    103102            return status, 'Ping is impossible.See portal_pingtool.' 
    104103 
     
    108107        result = 'ok' 
    109108        if not pingProp['enable_ping']: 
    110            message = 'Ping is dissabled' 
    111            return status, message 
     109            status = 'failed' 
     110            message = 'Ping is dissabled' 
     111            return status, message 
    112112        if ps.isSyndicationAllowed(blog): 
    113113            sites = pingProp['ping_sites'] 
Note: See TracChangeset for help on using the changeset viewer.