Changeset 605

Show
Ignore:
Timestamp:
10/24/06 09:04:52
Author:
mylan
Message:

Added feature for display exclamation mark near qPingTool in ZMI on canonical_url absence.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • qPingTool/branches/plone-2.5/PingTool.py

    r604 r605  
    159159        return  pingPropeties 
    160160 
     161    def om_icons(self): 
     162        """ Checking on ZMI for canonical_url setting.""" 
     163        icons = ({'path':'misc_/qPingTool/tool.gif' \ 
     164                    ,'alt':self.meta_type \ 
     165                    ,'title':self.meta_type \ 
     166                },) 
     167        if not getCanonicalURL(self): 
     168            icons = icons + ({'path':'misc_/PageTemplates/exclamation.gif' \ 
     169                                ,'alt':'Error' \ 
     170                                ,'title':'PingTool needs setting canonical_url' \ 
     171                                },) 
     172        return icons 
     173 
    161174registerType(PingTool)