| | 41 | |
| | 42 | and a similar one: |
| | 43 | {{{ |
| | 44 | http://test.ckan.net/tag/barbecue |
| | 45 | Module pylons.wsgiapp:324 in dispatch |
| | 46 | << if log_debug: |
| | 47 | log.debug("Calling controller class with WSGI interface") |
| | 48 | return controller(environ, start_response) |
| | 49 | |
| | 50 | def load_test_env(self, environ): |
| | 51 | >> return controller(environ, start_response) |
| | 52 | Module ckan.lib.base:118 in __call__ |
| | 53 | << # available in environ['pylons.routes_dict'] |
| | 54 | try: |
| | 55 | return WSGIController.__call__(self, environ, start_response) |
| | 56 | finally: |
| | 57 | model.Session.remove() |
| | 58 | >> return WSGIController.__call__(self, environ, start_response) |
| | 59 | Module pylons.controllers.core:221 in __call__ |
| | 60 | << return response(environ, self.start_response) |
| | 61 | |
| | 62 | response = self._dispatch_call() |
| | 63 | if not start_response_called: |
| | 64 | self.start_response = start_response |
| | 65 | >> response = self._dispatch_call() |
| | 66 | Module pylons.controllers.core:172 in _dispatch_call |
| | 67 | << req.environ['pylons.action_method'] = func |
| | 68 | |
| | 69 | response = self._inspect_call(func) |
| | 70 | else: |
| | 71 | if log_debug: |
| | 72 | >> response = self._inspect_call(func) |
| | 73 | Module pylons.controllers.core:107 in _inspect_call |
| | 74 | << func.__name__, args) |
| | 75 | try: |
| | 76 | result = self._perform_call(func, args) |
| | 77 | except HTTPException, httpe: |
| | 78 | if log_debug: |
| | 79 | >> result = self._perform_call(func, args) |
| | 80 | Module pylons.controllers.core:60 in _perform_call |
| | 81 | << """Hide the traceback for everything above this method""" |
| | 82 | __traceback_hide__ = 'before_and_this' |
| | 83 | return func(**args) |
| | 84 | |
| | 85 | def _inspect_call(self, func): |
| | 86 | >> return func(**args) |
| | 87 | Module ckan.controllers.tag:2 in read |
| | 88 | Module ckan.lib.cache:167 in wrapper |
| | 89 | << log = __import__("logging").getLogger("proxy_cache") |
| | 90 | def wrapper(func, *args, **kwargs): |
| | 91 | result = func(*args, **kwargs) |
| | 92 | |
| | 93 | pylons = get_pylons(args) |
| | 94 | >> result = func(*args, **kwargs) |
| | 95 | Module ckan.controllers.tag:64 in read |
| | 96 | << data_dict = {'id':id} |
| | 97 | try: |
| | 98 | c.tag = get.tag_show(context,data_dict) |
| | 99 | except NotFound: |
| | 100 | abort(404, _('Tag not found')) |
| | 101 | >> c.tag = get.tag_show(context,data_dict) |
| | 102 | Module ckan.logic.action.get:341 in tag_show |
| | 103 | << extended_packages = [] |
| | 104 | for package in tag_dict['packages']: |
| | 105 | extended_packages.append(_extend_package_dict(package,context)) |
| | 106 | |
| | 107 | tag_dict['packages'] = extended_packages |
| | 108 | >> extended_packages.append(_extend_package_dict(package,context)) |
| | 109 | Module ckan.logic.action.get:537 in _extend_package_dict |
| | 110 | << license_id = package_dict['license_id'] |
| | 111 | if license_id: |
| | 112 | isopen = model.Package.get_license_register()[license_id].isopen() |
| | 113 | package_dict['isopen'] = isopen |
| | 114 | else: |
| | 115 | >> isopen = model.Package.get_license_register()[license_id].isopen() |
| | 116 | Module ckan.model.license:59 in __getitem__ |
| | 117 | << return default |
| | 118 | else: |
| | 119 | raise KeyError, "License not found: %s" % key |
| | 120 | |
| | 121 | def get(self, key, default=None): |
| | 122 | >> raise KeyError, "License not found: %s" % key |
| | 123 | KeyError: u'License not found: CreativeCommonsAttributionCCBY25' |
| | 124 | }}} |