[Erp5-dev] a patch for Localizer patch
Bartłomiej Górny
bartek at erp5.pl
Fri Dec 22 12:42:55 CET 2006
On Thursday 21 of December 2006 16:58, Yoshinori Okuji wrote:
> On Thursday 21 December 2006 16:39, Bartłomiej Górny wrote:
> > There is sometimes a problem with GlobalTranslationService - in
> > ERP5Type/patches/Localizer.py it relies on acquisition to find the
> > Localizer object. But if we are processing an email received by zope, we
> > are in context of ZMailIn instance, and Localizer can't be found.
>
> I don't object to your patch, but how do you pass email to Zope? What I did
> in the past was like this:
>
> address: "|sendEmailToZope
> http://localhost:8080/erp5/scriptToDealWithEmail"
Ah, so you don't have the problem because you skip ZMailIn and call the script
directly. My "sendEmailToZope" script finds a ZMailIn object on the target
host, and the script is configured in ZMailIn. So the context is different.
Bartek
>
> YO
More information about the Erp5-dev
mailing list