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
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