Changeset 606

Show
Ignore:
Timestamp:
10/24/06 11:23:19
Author:
mylan
Message:

Replace 'adsense_template' Page template for Python script.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • adsenseproduct/trunk/Extensions/Install.py

    r605 r606  
    3030def removeProperties(self): 
    3131    pp = getToolByName(self, 'portal_properties') 
    32     if 'adsense_properties' in pp
     32    if 'adsense_properties' in pp.objectIds()
    3333        pp.manage_delObjects(ids=['adsense_properties',]) 
    3434 
  • adsenseproduct/trunk/util.py

    r605 r606  
    1818        return marker 
    1919    try: 
    20         return context.adsense_template(adsense_format=format
     20        return context.adsense_template(customer_id = customer_id
    2121                                       ,adsense_width=width \ 
    2222                                       ,adsense_height=height \ 
    23                                        ,customer_id = customer_id
     23                                       ,adsense_format=format
    2424                                       ) 
    2525    except: