##// END OF EJS Templates
lib-request: ported to python3
super-admin -
r5077:d68187c4 default
parent child Browse files
Show More
@@ -22,8 +22,7 b' from uuid import uuid4'
22 import pyramid.testing
22 import pyramid.testing
23 from pyramid.decorator import reify
23 from pyramid.decorator import reify
24 from pyramid.request import Request as _Request
24 from pyramid.request import Request as _Request
25 from rhodecode.translation import _ as tsf
25 from rhodecode.lib.type_utils import StrictAttributeDict
26 from rhodecode.lib.utils2 import StrictAttributeDict
27
26
28
27
29 class TemplateArgs(StrictAttributeDict):
28 class TemplateArgs(StrictAttributeDict):
@@ -95,6 +94,7 b' class RealRequest(RequestBase, _Request)'
95
94
96 def translate(self, *args, **kwargs):
95 def translate(self, *args, **kwargs):
97 localizer = self.localizer
96 localizer = self.localizer
97 from rhodecode.translation import _ as tsf
98
98
99 def auto_translate(*_args, **_kwargs):
99 def auto_translate(*_args, **_kwargs):
100 return localizer.translate(tsf(*_args, **_kwargs))
100 return localizer.translate(tsf(*_args, **_kwargs))
General Comments 0
You need to be logged in to leave comments. Login now