# HG changeset patch # User Marcin Kuzminski # Date 2017-01-13 12:59:02 # Node ID ffa9596da4b928f5d74f94a404373a56a6af3bd3 # Parent 6ba85770127906ce9943db252ac9ed6354dfc9b0 integrations: remove usage of template context from integrations models diff --git a/rhodecode/model/integration.py b/rhodecode/model/integration.py --- a/rhodecode/model/integration.py +++ b/rhodecode/model/integration.py @@ -25,24 +25,15 @@ Model for integrations import logging -import traceback -from pylons import tmpl_context as c -from pylons.i18n.translation import _, ungettext from sqlalchemy import or_, and_ -from sqlalchemy.sql.expression import false, true -from mako import exceptions import rhodecode from rhodecode import events -from rhodecode.lib import helpers as h from rhodecode.lib.caching_query import FromCache -from rhodecode.lib.utils import PartialRenderer from rhodecode.model import BaseModel -from rhodecode.model.db import Integration, User, Repository, RepoGroup -from rhodecode.model.meta import Session +from rhodecode.model.db import Integration, Repository, RepoGroup from rhodecode.integrations import integration_type_registry -from rhodecode.integrations.types.base import IntegrationTypeBase log = logging.getLogger(__name__)