Django

Code

Show
Ignore:
Timestamp:
04/27/08 12:17:04 (9 months ago)
Author:
jbronn
Message:

gis: Merged revisions 7458,7471-7473,7476-7478,7480 via svnmerge from trunk.

This includes all necessary patches for compatibility with queryset-refactor.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/gis

    • Property svnmerge-integrated changed from /django/trunk:1-7441 to /django/trunk:1-7481
  • django/branches/gis/django/db/__init__.py

    r6920 r7482  
    1212 
    1313try: 
    14     # Most of the time, the database backend will be one of the official  
     14    # Most of the time, the database backend will be one of the official 
    1515    # backends that ships with Django, so look there first. 
    1616    _import_path = 'django.db.backends.' 
    1717    backend = __import__('%s%s.base' % (_import_path, settings.DATABASE_ENGINE), {}, {}, ['']) 
     18    creation = __import__('%s%s.creation' % (_import_path, settings.DATABASE_ENGINE), {}, {}, ['']) 
    1819except ImportError, e: 
    19     # If the import failed, we might be looking for a database backend  
     20    # If the import failed, we might be looking for a database backend 
    2021    # distributed external to Django. So we'll try that next. 
    2122    try: 
    2223        _import_path = '' 
    2324        backend = __import__('%s.base' % settings.DATABASE_ENGINE, {}, {}, ['']) 
     25        creation = __import__('%s.creation' % settings.DATABASE_ENGINE, {}, {}, ['']) 
    2426    except ImportError, e_user: 
    2527        # The database backend wasn't found. Display a helpful error message 
     
    3840    return __import__('%s%s.%s' % (import_path, settings.DATABASE_ENGINE, module_name), {}, {}, ['']) 
    3941 
    40 # We don't want to import the introspect/creation modules unless  
    41 # someone asks for 'em, so lazily load them on demmand. 
     42# We don't want to import the introspect module unless someone asks for it, so 
     43# lazily load it on demmand. 
    4244get_introspection_module = curry(_import_database_module, _import_path, 'introspection') 
    43 get_creation_module = curry(_import_database_module, _import_path, 'creation') 
     45 
     46def get_creation_module(): 
     47    return creation 
    4448 
    4549# We want runshell() to work the same way, but we have to treat it a