Re: [Zope-dev] force the language for a particular template: solution

2009-04-19 Thread Chris Withers
Marius Gedminas wrote: > Does this work? IIRC Zope 3 request objects use __slots__ and therefore > cannot have any extra attributes imposed upon them from the outside. Good thing I'm using Zope 2 request objects then ;-) Does a Zope 3 request still haev an 'other' dictionary? If so, you could s

Re: [Zope-dev] force the language for a particular template: solution

2009-04-18 Thread Marius Gedminas
On Sat, Apr 18, 2009 at 12:34:19AM +0100, Chris Withers wrote: > Hanno Schlichting wrote: > > Or attach a marker interface to the request and register a different > > IUserPreferredLanguages adapter for it. > > This won't quite work as I still need to get the language I'm forcing > from somewhere

Re: [Zope-dev] force the language for a particular template: solution

2009-04-17 Thread Chris Withers
Hanno Schlichting wrote: > Or attach a marker interface to the request and register a different > IUserPreferredLanguages adapter for it. This won't quite work as I still need to get the language I'm forcing from somewhere. However, I realised I already had a custom IUserPreferredLanguages adap