Changeset 3464 in products for quintagroup.analytics


Ignore:
Timestamp:
May 18, 2012 9:20:00 AM (12 years ago)
Author:
kroman0
Message:

Fixed syntax for python2.4

Location:
quintagroup.analytics/trunk/quintagroup/analytics/browser
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.analytics/trunk/quintagroup/analytics/browser/legacy_portlets.pt

    r3407 r3464  
    1313            <ul class="formTabs" id="navigation"  tal:define="template_id template/getId"> 
    1414                <span tal:repeat="formTabItem view/analiticsNavigation"> 
    15                     <li class="formTab"><a tal:attributes="class python:'selected' if formTabItem['href'] in template_id else '';href python:formTabItem['href']" tal:content="python:formTabItem['content']">content</a></li> 
     15                    <li class="formTab"><a tal:attributes="class python:formTabItem['href'] in template_id and 'selected' or '';href python:formTabItem['href']" tal:content="python:formTabItem['content']">content</a></li> 
    1616                </span> 
    1717            </ul> 
  • quintagroup.analytics/trunk/quintagroup/analytics/browser/ownership_by_state.pt

    r3407 r3464  
    1212            <ul class="formTabs" id="navigation"  tal:define="template_id template/getId"> 
    1313                <span tal:repeat="formTabItem view/analiticsNavigation"> 
    14                     <li class="formTab"><a tal:attributes="class python:'selected' if formTabItem['href'] in template_id else '';href python:formTabItem['href']" tal:content="python:formTabItem['content']">content</a></li> 
     14                    <li class="formTab"><a tal:attributes="class python:formTabItem['href'] in template_id and 'selected' or '';href python:formTabItem['href']" tal:content="python:formTabItem['content']">content</a></li> 
    1515                </span> 
    1616            </ul> 
  • quintagroup.analytics/trunk/quintagroup/analytics/browser/ownership_by_type.pt

    r3407 r3464  
    1212            <ul class="formTabs" id="navigation"  tal:define="template_id template/getId"> 
    1313                <span tal:repeat="formTabItem view/analiticsNavigation"> 
    14                     <li class="formTab"><a tal:attributes="class python:'selected' if formTabItem['href'] in template_id else '';href python:formTabItem['href']" tal:content="python:formTabItem['content']">content</a></li> 
     14                    <li class="formTab"><a tal:attributes="class python:formTabItem['href'] in template_id and 'selected' or '';href python:formTabItem['href']" tal:content="python:formTabItem['content']">content</a></li> 
    1515                </span> 
    1616            </ul> 
  • quintagroup.analytics/trunk/quintagroup/analytics/browser/portlets_stats.pt

    r3407 r3464  
    1414            <ul class="formTabs" id="navigation"  tal:define="template_id template/getId"> 
    1515                <span tal:repeat="formTabItem view/analiticsNavigation"> 
    16                     <li class="formTab"><a tal:attributes="class python:'selected' if formTabItem['href'] in template_id else '';href python:formTabItem['href']" tal:content="python:formTabItem['content']">content</a></li> 
     16                    <li class="formTab"><a tal:attributes="class python:formTabItem['href'] in template_id and 'selected' or '';href python:formTabItem['href']" tal:content="python:formTabItem['content']">content</a></li> 
    1717                </span> 
    1818            </ul> 
  • quintagroup.analytics/trunk/quintagroup/analytics/browser/properties_stats.pt

    r3407 r3464  
    1414            <ul class="formTabs" id="navigation"  tal:define="template_id template/getId"> 
    1515                <span tal:repeat="formTabItem view/analiticsNavigation"> 
    16                     <li class="formTab"><a tal:attributes="class python:'selected' if formTabItem['href'] in template_id else '';href python:formTabItem['href']" tal:content="python:formTabItem['content']">content</a></li> 
     16                    <li class="formTab"><a tal:attributes="class python:formTabItem['href'] in template_id and 'selected' or '';href python:formTabItem['href']" tal:content="python:formTabItem['content']">content</a></li> 
    1717                </span> 
    1818            </ul> 
  • quintagroup.analytics/trunk/quintagroup/analytics/browser/qa_overview.pt

    r3407 r3464  
    1212            <ul class="formTabs" id="navigation"  tal:define="template_id template/getId"> 
    1313                <span tal:repeat="formTabItem view/analiticsNavigation"> 
    14                     <li class="formTab"><a tal:attributes="class python:'selected' if formTabItem['href'] in template_id else '';href python:formTabItem['href']" tal:content="python:formTabItem['content']">content</a></li> 
     14                    <li class="formTab"><a tal:attributes="class python:formTabItem['href'] in template_id and 'selected' or '';href python:formTabItem['href']" tal:content="python:formTabItem['content']">content</a></li> 
    1515                </span> 
    1616            </ul> 
  • quintagroup.analytics/trunk/quintagroup/analytics/browser/type_by_state.pt

    r3407 r3464  
    1313            <ul class="formTabs" id="navigation"  tal:define="template_id template/getId"> 
    1414                <span tal:repeat="formTabItem view/analiticsNavigation"> 
    15                     <li class="formTab"><a tal:attributes="class python:'selected' if formTabItem['href'] in template_id else '';href python:formTabItem['href']" tal:content="python:formTabItem['content']">content</a></li> 
     15                    <li class="formTab"><a tal:attributes="class python:formTabItem['href'] in template_id and 'selected' or '';href python:formTabItem['href']" tal:content="python:formTabItem['content']">content</a></li> 
    1616                </span> 
    1717            </ul> 
  • quintagroup.analytics/trunk/quintagroup/analytics/browser/views.py

    r3408 r3464  
    77from Products.CMFCore.interfaces import IFolderish 
    88from Products.Archetypes.interfaces import IBaseFolder 
    9 from plone.portlets.interfaces import IPortletManager 
    10 from plone.portlets.interfaces import IPortletAssignmentMapping 
    11 from plone.portlets.interfaces import ILocalPortletAssignmentManager 
     9try: 
     10    from plone.portlets.interfaces import IPortletManager 
     11    from plone.portlets.interfaces import IPortletAssignmentMapping 
     12    from plone.portlets.interfaces import ILocalPortletAssignmentManager 
     13except ImportError: 
     14    IPortletManager = lambda assignment: {} 
     15    IPortletAssignmentMapping = lambda assignment: {} 
     16    ILocalPortletAssignmentManager = lambda assignment: {} 
    1217try: 
    1318    from plone.portlets.interfaces import IPortletAssignmentSettings 
Note: See TracChangeset for help on using the changeset viewer.