Esempio n. 1
0
 def _load_state(self):
     self._loaded = True
     self.uid = IUIDStrategy(self.context).getuid()
     self.portal = getSite()
     self.sender = invitation_sender(self.portal)
     self.localize = getToolByName(self.portal, 'translation_service')
     self.timefn = self.localize.ulocalized_time
Esempio n. 2
0
 def _load_state(self):
     self._loaded = True
     self.uid = getuid(self.context)
     self.portal = getSite()
     altportal = getSite()
     self.sender = invitation_sender(self.portal)
     self.localize = getToolByName(self.portal, 'translation_service')
     self.timefn = self.localize.ulocalized_time
     if HAS_PAE:
         self.timefn = ulocalized_time  # fixed DateTime timezone bug