Did I find the right examples for you? yes no

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

src/p/r/Products.IntelliDateTime-1.3.2/src/Products/IntelliDateTime/widget.py   Products.IntelliDateTime(Download)
 
from Products.CMFPlone.interfaces.siteroot import IPloneSiteRoot
from Products.IntelliDateTime.interfaces import ILocaleFactory
 
class IntelliDateTimeWidget(CalendarWidget):
        dt = timezoneAdjuster(instance, dt)
        site = self._site(instance)
        locale = ILocaleFactory(site)
        locale = locales.getLocale(locale, locale)
        if not self.show_hm:
        # the default implementation fetches the portal's default_language
        # possible specialisations could return a locale for the logged in user
        locale = ILocaleFactory(site)
 
        try: