Changeset - 96982a636f31
[Not reviewed]
0 1 0
Lance Edgar (lance) - 12 years ago 2012-07-26 16:02:10
lance@edbob.org
fix rattail.db.init()
1 file changed with 5 insertions and 3 deletions:
0 comments (0 inline, 0 general)
rattail/db/__init__.py
Show inline comments
 
@@ -34,15 +34,17 @@ import rattail
 

	
 
def init(config):
 
    """
 
    Initialize the Rattail database framework.
 
    """
 

	
 
    from rattail.db import extension
 
    edbob.graft(rattail, extension.model)
 
    edbob.graft(rattail, extension.enum)
 
    from rattail.db.extension import model
 
    edbob.graft(rattail, model)
 

	
 
    from rattail.db.extension import enum
 
    edbob.graft(rattail, enum)
 

	
 

	
 
def init_database(engine, session):
 
    """
 
    Initialize an ``edbob`` database for use with Rattail.
 
    """
0 comments (0 inline, 0 general)