<filename>src/parruc/violareggiocalabria/browser/giocatori.py<gh_stars>0
# -*- coding: utf-8 -*-
from parruc.devtools import profiled
from parruc.violareggiocalabria import utils
from Products.Five.browser import BrowserView


#  from parruc.violareggiocalabria import _


class GiocatoriView(BrowserView):
    @profiled(threshold=10)
    def get_players(self):
        league = utils.get_main_league()
        team = league.get_viola()
        return team.get_players()

<filename>src/parruc/violareggiocalabria/browser/giocatori.py<gh_stars>0
# -*- coding: utf-8 -*-
from parruc.devtools import profiled
from parruc.violareggiocalabria import utils
from Products.Five.browser import BrowserView


#  from parruc.violareggiocalabria import _


class GiocatoriView(BrowserView):
    @profiled(threshold=10)
    def get_players(self):
        league = utils.get_main_league()
        team = league.get_viola()
        return team.get_players()

# -*- coding: utf-8 -*- #  from parruc.violareggiocalabria import _