Ignore:
Timestamp:
Apr 20, 2011 8:20:36 AM (10 years ago)
Author:
zidane
Message:

fixes pep8

File:
1 edited

Legend:

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

    r1593 r3152  
    55from quintagroup.plonegooglesitemaps.utils import ping_google 
    66 
     7 
    78@adapter(IAfterTransitionEvent) 
    89def pingGoogle(event): 
    9     tr_id = getattr(event.transition,'id','') 
     10    tr_id = getattr(event.transition, 'id', '') 
    1011    if not tr_id: 
    1112        # object under creation 
     
    1718    sitemaps = [b.getObject() for b in catalog(portal_type='Sitemap')] 
    1819    if sitemaps: 
    19         plone_home = getToolByName(object, 'portal_url').getPortalObject().absolute_url() 
     20        url = getToolByName(object, 'portal_url') 
     21        plone_home = url.getPortalObject().absolute_url() 
    2022        wftrans_name = "%s#%s" % (event.workflow.id, tr_id) 
    2123        obj_ptype = object.portal_type 
Note: See TracChangeset for help on using the changeset viewer.