Django

Code

Changeset 5410

Show
Ignore:
Timestamp:
06/01/07 11:30:38 (1 year ago)
Author:
simon
Message:

rollback on dummy database now has no effect (previously raised an error). This means that custom 500 error pages (and e-mailed exceptions) now work even if a database has not been configured. Fixes #4429.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/db/backends/dummy/base.py

    r5076 r5410  
    1313    raise ImproperlyConfigured, "You haven't set the DATABASE_ENGINE setting yet." 
    1414 
     15def ignore(*args, **kwargs): 
     16    pass 
     17 
    1518class DatabaseError(Exception): 
    1619    pass 
     
    2225    cursor = complain 
    2326    _commit = complain 
    24     _rollback = complain 
     27    _rollback = ignore 
    2528 
    2629    def __init__(self, **kwargs):