Skip to content

Commit 2947fb9

Browse files
committed
Fixes for RoundupPageTemplate in engine_chameleon.py.
* Follow Chameleon API change * Inherit from object
1 parent 8a0d487 commit 2947fb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roundup/cgi/engine_chameleon.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def get(self, name, extension=None):
2323
src, filename = find_template(self.dir, name, extension)
2424
return RoundupPageTemplate(self.loader.load(src))
2525

26-
class RoundupPageTemplate():
26+
class RoundupPageTemplate(object):
2727
def __init__(self, pt):
2828
self._pt = pt
2929

@@ -36,7 +36,7 @@ def translate(msgid, domain=None, mapping=None, default=None):
3636
mapping=mapping, default=default)
3737
return unicode(result, client.translator.OUTPUT_ENCODING)
3838

39-
output = self._pt.render(None, translate, None, **c)
39+
output = self._pt.render(None, translate, **c)
4040
return output.encode(client.charset)
4141

4242
def __getitem__(self, name):

0 commit comments

Comments
 (0)