import threadinglocal, sys

if sys.version < '2.4':
  class _RequestConfig(object):
      __shared_state = threadinglocal.local()
      def __getattr__(self, name):
          return self.__shared_state.__getattr__(name)

      def __setattr__(self, name, value):
          return self.__shared_state.__setattr__(name, value)
else:
  class _RequestConfig(object):
      __shared_state = threadinglocal.local()
      def __getattr__(self, name):
          return self.__shared_state.__getattribute__(name)

      def __setattr__(self, name, value):
          return self.__shared_state.__setattr__(name, value)
  
def request_config():
    return _RequestConfig()
    
from base import Mapper
from util import url_for, redirect_to

import threadinglocal, sys

if sys.version < '2.4':
  class _RequestConfig(object):
      __shared_state = threadinglocal.local()
      def __getattr__(self, name):
          return self.__shared_state.__getattr__(name)

      def __setattr__(self, name, value):
          return self.__shared_state.__setattr__(name, value)
else:
  class _RequestConfig(object):
      __shared_state = threadinglocal.local()
      def __getattr__(self, name):
          return self.__shared_state.__getattribute__(name)

      def __setattr__(self, name, value):
          return self.__shared_state.__setattr__(name, value)
  
def request_config():
    return _RequestConfig()
    
from base import Mapper
from util import url_for, redirect_to
__all__=['Mapper', 'url_for', 'redirect_to', 'request_config']
Tweak for exporting the symbols
[svn] Tweak for exporting the symbols

--HG--
branch : trunk

  import threadinglocal, sys
  
  if sys.version < '2.4':
    class _RequestConfig(object):
        __shared_state = threadinglocal.local()
        def __getattr__(self, name):
            return self.__shared_state.__getattr__(name)
  
        def __setattr__(self, name, value):
            return self.__shared_state.__setattr__(name, value)
  else:
    class _RequestConfig(object):
        __shared_state = threadinglocal.local()
        def __getattr__(self, name):
            return self.__shared_state.__getattribute__(name)
  
        def __setattr__(self, name, value):
            return self.__shared_state.__setattr__(name, value)
    
  def request_config():
      return _RequestConfig()
      
  from base import Mapper
  from util import url_for, redirect_to
- 
+ __all__=['Mapper', 'url_for', 'redirect_to', 'request_config']
Tweak for exporting the symbols
## Code Before:
import threadinglocal, sys

if sys.version < '2.4':
  class _RequestConfig(object):
      __shared_state = threadinglocal.local()
      def __getattr__(self, name):
          return self.__shared_state.__getattr__(name)

      def __setattr__(self, name, value):
          return self.__shared_state.__setattr__(name, value)
else:
  class _RequestConfig(object):
      __shared_state = threadinglocal.local()
      def __getattr__(self, name):
          return self.__shared_state.__getattribute__(name)

      def __setattr__(self, name, value):
          return self.__shared_state.__setattr__(name, value)
  
def request_config():
    return _RequestConfig()
    
from base import Mapper
from util import url_for, redirect_to

## Instruction:
Tweak for exporting the symbols
## Code After:
import threadinglocal, sys

if sys.version < '2.4':
  class _RequestConfig(object):
      __shared_state = threadinglocal.local()
      def __getattr__(self, name):
          return self.__shared_state.__getattr__(name)

      def __setattr__(self, name, value):
          return self.__shared_state.__setattr__(name, value)
else:
  class _RequestConfig(object):
      __shared_state = threadinglocal.local()
      def __getattr__(self, name):
          return self.__shared_state.__getattribute__(name)

      def __setattr__(self, name, value):
          return self.__shared_state.__setattr__(name, value)
  
def request_config():
    return _RequestConfig()
    
from base import Mapper
from util import url_for, redirect_to
__all__=['Mapper', 'url_for', 'redirect_to', 'request_config']