Changeset 775 for spinoffs

Show
Ignore:
Timestamp:
04/16/07 22:37:05 (5 years ago)
Author:
bycycle
Message:

Don't try to connect metadata when engine isn't created.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • spinoffs/Restler/restler/base.py

    r774 r775  
    147147        sys.stderr.write('WARNING: Database engine was not defined in ' 
    148148                         '``model`` and could not be created.\n') 
    149 if not metadata.is_bound(): 
     149 
     150if engine is not None and not metadata.is_bound(): 
    150151    metadata.connect(engine) 
    151152