Changeset 3666 in products


Ignore:
Timestamp:
Apr 23, 2013 12:24:39 PM (6 years ago)
Author:
kroman0
Message:

flake8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.analytics/trunk/quintagroup/analytics/browser/views.py

    r3597 r3666  
    2929from quintagroup.analytics import QuintagroupAnalyticsMessageFactory as _ 
    3030 
    31 MENUEITEMS = [{'href':'qa_overview', 'content':_('Overview')}, 
    32               {'href':'ownership_by_type', 'content':_('Ownership by type')}, 
    33               {'href':'ownership_by_state', 'content':_('Ownership by state')}, 
    34               {'href':'type_by_state', 'content':_('Types by state')}, 
    35               {'href':'portlets_stats', 'content':_('Portlets stats')}, 
    36               {'href':'legacy_portlets', 'content':_('Legacy portlets')}, 
    37               {'href':'properties_stats', 'content':_('Properties stats')}] 
     31MENUEITEMS = [{'href': 'qa_overview', 'content': _('Overview')}, 
     32              {'href': 'ownership_by_type', 'content': _('Ownership by type')}, 
     33              {'href': 'ownership_by_state', 'content': _( 
     34                  'Ownership by state')}, 
     35              {'href': 'type_by_state', 'content': _('Types by state')}, 
     36              {'href': 'portlets_stats', 'content': _('Portlets stats')}, 
     37              {'href': 'legacy_portlets', 'content': _('Legacy portlets')}, 
     38              {'href': 'properties_stats', 'content': _('Properties stats')}] 
    3839 
    3940 
     
    444445            if name not in exprs: 
    445446                exprs.append(name) 
    446         #exprs.sort() 
     447        # exprs.sort() 
    447448        return exprs 
    448449 
     
    520521 
    521522    def getPortlets(self, context, mapping, manager): 
    522         #import pdb; pdb.set_trace() 
     523        # import pdb; pdb.set_trace() 
    523524        return mapping.keys() 
    524525 
     
    533534        } 
    534535        left, right = self.getPortletsManager(obj) 
    535         #leftmapping, rightmapping = self.getPortletsMapping(obj) 
    536         #leftmanager, rightmanager = self.getLocalPortletsManager(obj) 
    537         #info['left_slots'] = self.getPortlets(obj, leftmapping, leftmanager) 
    538         #info['right_slots'] = self.getPortlets(obj, rightmapping,rightmanager) 
     536        # leftmapping, rightmapping = self.getPortletsMapping(obj) 
     537        # leftmanager, rightmanager = self.getLocalPortletsManager(obj) 
     538        # info['left_slots'] = self.getPortlets(obj, leftmapping, leftmanager) 
     539        # info['right_slots'] = self.getPortlets(obj, 
     540        # rightmapping,rightmanager) 
    539541        lass = self.getAssignmentsForManager(obj, left) 
    540542        rass = self.getAssignmentsForManager(obj, right) 
     
    543545        plass = self.portlets_for_assignments(lass, left, lurl) 
    544546        prass = self.portlets_for_assignments(rass, right, rurl) 
    545         #print obj, plass, prass 
     547        # print obj, plass, prass 
    546548        info['left_slots'] = plass  # [i['title'] for i in plass] 
    547549        info['right_slots'] = prass  # [i['title'] for i in prass] 
     
    582584            if name not in exprs: 
    583585                exprs.append(name) 
    584         #exprs.sort() 
     586        # exprs.sort() 
    585587        return exprs 
Note: See TracChangeset for help on using the changeset viewer.