def setUp(self):
     super(Test, self).setUp()
     TestII18nAware.setUp(self)
     provideAdapter(HTTPCharsets, (IHTTPRequest,), IUserPreferredCharsets)
     provideAdapter(BrowserLanguages, (IHTTPRequest,), IUserPreferredLanguages)
     # Setup the negotiator utility
     provideUtility(negotiator, INegotiator)
 def setUp(self):
     super(Test, self).setUp()
     TestII18nAware.setUp(self)
     provideAdapter(HTTPCharsets, (IHTTPRequest, ), IUserPreferredCharsets)
     provideAdapter(BrowserLanguages, (IHTTPRequest, ),
                    IUserPreferredLanguages)
     # Setup the negotiator utility
     provideUtility(negotiator, INegotiator)
Exemple #3
0
 def setUp(self):
     super(Test, self).setUp()
     TestII18nAware.setUp(self)
     ztapi.provideAdapter(IHTTPRequest, IUserPreferredCharsets,
                          HTTPCharsets)
     ztapi.provideAdapter(IHTTPRequest, IUserPreferredLanguages,
                          BrowserLanguages)
     # Setup the negotiator utility
     ztapi.provideUtility(INegotiator, negotiator)
Exemple #4
0
 def setUp(self):
     super(Test, self).setUp()
     TestII18nAware.setUp(self)
     ztapi.provideAdapter(IHTTPRequest, IUserPreferredCharsets,
                          HTTPCharsets)
     ztapi.provideAdapter(IHTTPRequest, IUserPreferredLanguages,
                          BrowserLanguages)
     # Setup the negotiator utility
     ztapi.provideUtility(INegotiator, negotiator)