def connect(): """ Connect our listener functions to the various signals we can receive. We connect to the various signals that we need to receive when changes are made to the underlying data. """ location_changed.connect(on_location_changed) location_name_changed.connect(on_location_name_changed) name_changed.connect(on_name_changed) outline_changed.connect(on_outline_changed)
""" models.py This module is normally used to hold the model objects used by the application. We don't define any models here (that's done within the 'data' app); instead, we use this as an opportunity to listen for the Django signals that we need to respond to. """ from data.signals import outline_changed import tms ############################################################################# outline_changed.connect(tms.outlineChanged)