Pylons imports

Adrià Mercader edited this page Dec 10, 2015 · 6 revisions

Imports of Pylons and libs (Core)

  • from pylons import c
  • from pylons import cache, config, session
  • from pylons import config
  • from pylons import config, c
  • from pylons import config, cache
  • from pylons import config, request
  • from pylons import config, session
  • from pylons import g, c, request, session, response
  • from pylons import i18n
  • from pylons import request, tmpl_context as c
  • from pylons import url as _pylons_default_url
  • from pylons.controllers import WSGIController
  • from pylons.controllers.util import abort as _abort
  • from pylons.controllers.util import forward
  • from pylons.controllers.util import redirect_to, redirect
  • from pylons.controllers.util import Request, Response
  • from pylons.decorators import jsonify
  • from pylons.decorators.cache import beaker_cache
  • from pylons.i18n import _, ungettext
  • from pylons.i18n import get_lang
  • from pylons.i18n import N_, gettext, ngettext
  • from pylons.middleware import ErrorHandler, StatusCodeRedirect
  • from pylons.templating import cached_template, pylons_globals
  • from pylons.test import pylonsapp
  • from pylons.util import AttribSafeContextObj
  • from pylons.util import PylonsInstaller
  • from pylons.wsgiapp import PylonsApp
  • import pylons.test
  • pylons.g
  • pylons.response
  • pylons.session
  • pylons.translator
  • pylons.url
  • pylons.util.AttribSafeContextObj()

Imports in some random extensions

Harvest

  • from pylons import request [is in toolkit]
  • from pylons.i18n import _ [is in toolkit]
  • import pylons (for translator)
  • from pylons import config

Spatial

  • from pylons.i18n import _ [is in toolkit]
  • from pylons import config
  • from pylons import response [is in toolkit]
  • from pylons import request [is in toolkit]

Archiver

  • from pylons import config
  • from pylons import translator

Scheming

  • from pylons import config
  • from pylons.i18n import gettext [is in toolkit as _]
  • from pylons import c [is in toolkit]

Fluent

  • from pylons import config

NaturalHistoryMuseum/ckanext-dataspatial

from pylons import config

NaturalHistoryMuseum/ckanext-doi

from pylons import config

Detailed occurrences

pylons.config

ckan/ckan_nose_plugin.py:9:
ckan/authz.py:5
ckan/tests/logic/action/test_create.py:5
ckan/tests/config/test_environment.py:4
ckan/tests/model/test_license.py:4
ckan/tests/lib/search/test_index.py:7
ckan/tests/lib/test_datapreview.py:3
ckan/tests/lib/test_mailer.py:2
ckan/tests/legacy/functional/test_user.py:3
ckan/tests/legacy/functional/api/test_user.py:2
ckan/tests/legacy/functional/api/test_email_notifications.py:15
ckan/tests/legacy/functional/api/test_activity.py:16
ckan/tests/legacy/functional/api/base.py:9
ckan/tests/legacy/functional/test_activity.py:1
ckan/tests/legacy/logic/test_auth.py:2
ckan/tests/legacy/logic/test_action.py:7
ckan/tests/legacy/mock_mail_server.py:6
ckan/tests/legacy/lib/test_helpers.py:5
ckan/tests/legacy/lib/test_solr_search_index.py:5
ckan/tests/legacy/test_plugins.py:7
ckan/tests/legacy/__init__.py:19
ckan/tests/legacy/misc/test_sync.py:6
ckan/tests/helpers.py:21
ckan/tests/controllers/test_admin.py:5
ckan/tests/legacy/misc/test_mock_mail_server.py:3
ckan/logic/action/create.py:7
ckan/logic/action/update.py:8
ckan/logic/action/get.py:9
ckan/config/middleware.py:15
ckan/config/environment.py:11
ckan/config/routing.py:10
ckan/model/meta.py:4
ckan/model/license.py:5
ckan/model/package.py:9
ckan/model/resource.py:6
ckan/lib/search/query.py:4
ckan/lib/search/common.py:1
ckan/lib/search/__init__.py:8
ckan/lib/search/index.py:13
ckan/lib/render.py:5
ckan/lib/navl/dictization_functions.py:5
ckan/lib/mailer.py:10
ckan/lib/activity_streams_session_extension.py:1
ckan/lib/helpers.py:33
ckan/lib/captcha.py:1
ckan/lib/app_globals.py:9
ckan/lib/cli.py:21
ckan/lib/cli.py:38
ckan/lib/cli.py:1787
ckan/lib/i18n.py:8
ckan/lib/auth_tkt.py:4
ckan/controllers/package.py:7
ckan/controllers/feed.py:26
ckan/controllers/tag.py:1
ckan/controllers/user.py:4
ckan/controllers/home.py:1, cache
ckan/controllers/admin.py:1
ckan/migration/versions/081_set_datastore_active.py:5
ckan/lib/dictization/model_dictize.py:15
ckan/lib/dictization/__init__.py:4
ckan/tests/legacy/functional/test_package.py:3
ckan/lib/hash.py:4
ckan/tests/legacy/lib/test_i18n.py:2
ckan/lib/celery_app.py:5
ckan/lib/base.py:9

pylons.c

ckan/tests/legacy/functional/test_package.py:3
ckan/lib/plugins.py:5
ckan/lib/maintain.py:8
ckan/common.py:11
ckan/controllers/error.py:4

pylons.g

ckan/common.py:11
ckan/lib/base.py:15

pylons.request

ckan/common.py:11
ckan/controllers/error.py:4
ckan/lib/hash.py:4

pylons.response

ckan/common.py:11

pylons.session

ckan/common.py:11
ckan/tests/legacy/lib/test_i18n.py:2
ckan/lib/base.py:9

pylons.cache

ckan/lib/base.py:9

pylons.controllers.util.abort pylons.controllers.util.redirect_to pylons.controllers.util.redirect

ckan/lib/base.py:11
ckan/lib/base.py:12

pylons.controllers.util.forward

ckan/controllers/error.py:5

pylons.middleware.ErrorHandler pylons.middleware.StatusCodeRedirect

ckan/config/middleware.py:16

pylons.wsgiapp.PylonsApp

ckan/config/middleware.py:17
ckan/config/environment.py:110

pylons.controllers.WSGIController

ckan/lib/base.py:10

pylons.url

ckan/lib/helpers.py:31

pylons.i18n pylons.i18n._ pylons.i18n.N_ pylons.i18n.gettext pylons.i18n.ngettext pylons.i18n.ungettext pylons.i18n.get_lang

ckan/lib/base.py:14
ckan/lib/i18n.py:9
ckan/common.py:10
ckan/controllers/revision.py:3
ckan/controllers/group.py:5

Legacy tests

from pylons.test import pylonsapp

ckan/tests/legacy/functional/test_activity.py:2
ckan/tests/legacy/__init__.py:20
ckan/tests/controllers/test_util.py:2

from pylons.util import AttribSafeContextObj

ckan/tests/legacy/pylons_controller.py:11

from pylons.controllers.util import Request, Response

ckan/tests/legacy/pylons_controller.py:13

from pylons.util import PylonsInstaller

ckan/config/install.py:3

Not used

from pylons.decorators.cache import beaker_cache

ckan/lib/helpers.py:32

from pylons.decorators import jsonify

ckan/lib/base.py:13

from pylons.i18n import N_, gettext, ngettext

ckan/lib/base.py:14

from pylons.templating import cached_template, pylons_globals

ckan/lib/base.py:15

from pylons import i18n

ckan/lib/i18n.py:9

from pylons.i18n import _, ungettext

ckan/common.py:10

from pylons.i18n import get_lang

ckan/controllers/revision.py:3
ckan/controllers/group.py:5

from pylons.controllers.util import forward

This is from pylons 1.0 source, will monkey-patch into 0.9.7

ckan/config/environment.py:114
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.