Did I find the right examples for you? yes no

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

src/i/t/ityou.whoisonline-1.1rc6/ityou/whoisonline/portlets/whoisonline.py   ityou.whoisonline(Download)
from ..interfaces import IWhoIsOnlineSettings
from .utils import WhoIsOnlineUtils
from ..config import MIN_WHOISONLINE_DELAY
 
class IWhoIsOnlinePortlet(IPortletDataProvider):
        # if value lower than MIN_WHOISONLINE_DELAY,
        # we take MIN_WHOISONLINE_DELAY
        self.WHOISONLINE_DELAY = max([ru.forInterface(IWhoIsOnlineSettings).whoisonline_delay*1000, MIN_WHOISONLINE_DELAY])
        self.ESI_ROOT = getSite().absolute_url()
        # only show if not Anonymous