<div dir="ltr">Hi Thomas,<div><br></div><div>I added you to committers for kallithea-tg repository, you should now be able to freely push the patch yourself.</div><div>If anyone else is willing to work on that repository feel free to send me an email, I'll gladly add you.</div><div><br></div><div>Bests,</div><div>Alessandro</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 16, 2016 at 9:33 AM, Thomas De Schampheleire <span dir="ltr"><<a href="mailto:patrickdepinguin@gmail.com" target="_blank">patrickdepinguin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"># HG changeset patch<br>
# User Thomas De Schampheleire <<a href="mailto:thomas.de.schampheleire@gmail.com">thomas.de.schampheleire@gmail.com</a>><br>
# Date 1455611489 -3600<br>
# Tue Feb 16 09:31:29 2016 +0100<br>
# Node ID 17d13a1e3d7a9ed4f66ec6eb84b25408dc05370a<br>
# Parent 34d30390a8a0366f87840a40e91eab797a79ef14<br>
turbogears migration: fix broken _tmpl_lookup and _template_root instances<br>
<br>
A few pylons replacements were missed before, causing e.g. e-mail<br>
notifications to throw an error.<br>
<br>
diff --git a/kallithea/controllers/admin/users.py b/kallithea/controllers/admin/users.py<br>
--- a/kallithea/controllers/admin/users.py<br>
+++ b/kallithea/controllers/admin/users.py<br>
@@ -30,7 +30,7 @@ import traceback<br>
import formencode<br>
<br>
from formencode import htmlfill<br>
-from tg import request, tmpl_context as c, config<br>
+from tg import request, tmpl_context as c, config, app_globals<br>
from tg.i18n import ugettext as _<br>
from sqlalchemy.sql.expression import func<br>
from webob.exc import HTTPFound, HTTPNotFound<br>
@@ -78,7 +78,7 @@ class UsersController(BaseController):<br>
<br>
users_data = []<br>
total_records = len(c.users_list)<br>
- _tmpl_lookup = kallithea.CONFIG['pylons.app_globals'].mako_lookup<br>
+ _tmpl_lookup = app_globals.mako_lookup<br>
template = _tmpl_lookup.get_template('data_table/_dt_elements.html')<br>
<br>
grav_tmpl = '<div class="gravatar">%s</div>'<br>
diff --git a/kallithea/model/notification.py b/kallithea/model/notification.py<br>
--- a/kallithea/model/notification.py<br>
+++ b/kallithea/model/notification.py<br>
@@ -29,7 +29,7 @@ Original author and date, and relevant c<br>
import logging<br>
import traceback<br>
<br>
-from tg import tmpl_context as c<br>
+from tg import tmpl_context as c, app_globals<br>
from tg.i18n import ugettext as _<br>
from sqlalchemy.orm import joinedload, subqueryload<br>
<br>
@@ -288,8 +288,8 @@ class EmailNotificationModel(BaseModel):<br>
<br>
def __init__(self):<br>
super(EmailNotificationModel, self).__init__()<br>
- self._template_root = kallithea.CONFIG['pylons.paths']['templates'][0]<br>
- self._tmpl_lookup = kallithea.CONFIG['pylons.app_globals'].mako_lookup<br>
+ self._template_root = kallithea.CONFIG['paths']['templates'][0]<br>
+ self._tmpl_lookup = app_globals.mako_lookup<br>
self.email_types = {<br>
self.TYPE_CHANGESET_COMMENT: 'changeset_comment',<br>
self.TYPE_PASSWORD_RESET: 'password_reset',<br>
diff --git a/kallithea/model/repo.py b/kallithea/model/repo.py<br>
--- a/kallithea/model/repo.py<br>
+++ b/kallithea/model/repo.py<br>
@@ -163,10 +163,10 @@ class RepoModel(BaseModel):<br>
@classmethod<br>
def _render_datatable(cls, tmpl, *args, **kwargs):<br>
import kallithea<br>
- from tg import tmpl_context as c<br>
+ from tg import tmpl_context as c, app_globals<br>
from tg.i18n import ugettext as _<br>
<br>
- _tmpl_lookup = kallithea.CONFIG['pylons.app_globals'].mako_lookup<br>
+ _tmpl_lookup = app_globals.mako_lookup<br>
template = _tmpl_lookup.get_template('data_table/_dt_elements.html')<br>
<br>
tmpl = template.get_def(tmpl)<br>
</blockquote></div><br></div>