old_contents: """Base objects to be exported for use in Controllers"""
  from paste.registry import StackedObjectProxy
  
  from pylons.config import config
  
  __all__ = ['app_globals', 'c', 'cache', 'config', 'g', 'request', 'response',
             'session', 'tmpl_context', 'url']
  
  def __figure_version():
      try:
          from pkg_resources import require
          import os
          # NOTE: this only works when the package is either installed,
          # or has an .egg-info directory present (i.e. wont work with raw
          # SVN checkout)
          info = require('pylons')[0]
          if os.path.dirname(os.path.dirname(__file__)) == info.location:
              return info.version
          else:
              return '(not installed)'
      except:
          return '(not installed)'
          
  __version__ = __figure_version()
  
  app_globals = g = StackedObjectProxy(name="app_globals")
  cache = StackedObjectProxy(name="cache")
  request = StackedObjectProxy(name="request")
  response = StackedObjectProxy(name="response")
  session = StackedObjectProxy(name="session")
  tmpl_context = c = StackedObjectProxy(name="tmpl_context or C")
  url = StackedObjectProxy(name="url")
  
  translator = StackedObjectProxy(name="translator")
  
new_contents: """Base objects to be exported for use in Controllers"""
  from paste.registry import StackedObjectProxy
  
  from pylons.configuration import config
  
  __all__ = ['app_globals', 'c', 'cache', 'config', 'g', 'request', 'response',
             'session', 'tmpl_context', 'url']
  
  def __figure_version():
      try:
          from pkg_resources import require
          import os
          # NOTE: this only works when the package is either installed,
          # or has an .egg-info directory present (i.e. wont work with raw
          # SVN checkout)
          info = require('pylons')[0]
          if os.path.dirname(os.path.dirname(__file__)) == info.location:
              return info.version
          else:
              return '(not installed)'
      except:
          return '(not installed)'
          
  __version__ = __figure_version()
  
  app_globals = g = StackedObjectProxy(name="app_globals")
  cache = StackedObjectProxy(name="cache")
  request = StackedObjectProxy(name="request")
  response = StackedObjectProxy(name="response")
  session = StackedObjectProxy(name="session")
  tmpl_context = c = StackedObjectProxy(name="tmpl_context or C")
  url = StackedObjectProxy(name="url")
  
  translator = StackedObjectProxy(name="translator")
  
subject: Fix an import error. pylons.config doesn't exist anymore, use pylons.configuration