Changeset - 19a3a4a926d0
[Not reviewed]
0 1 0
Lance Edgar (lance) - 12 years ago 2012-10-05 07:14:15
lance@edbob.org
add extra class config to load-host-data
1 file changed with 5 insertions and 0 deletions:
0 comments (0 inline, 0 general)
rattail/db/load.py
Show inline comments
 
@@ -99,6 +99,11 @@ class LoadProcessor(edbob.Object):
 
        yield rattail.Customer
 
        yield rattail.Employee
 

	
 
        classes = edbob.config.get('rattail.db', 'load.extra_classes')
 
        if classes:
 
            for cls in classes.split():
 
                yield getattr(edbob, cls)
 

	
 
    def query_Customer(self, q):
 
        q = q.options(joinedload(rattail.Customer.phones))
 
        q = q.options(joinedload(rattail.Customer.emails))
0 comments (0 inline, 0 general)