~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/canonical/database/sqlbase.py

merged base branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
170
170
        We refetch any parameters from different stores from the
171
171
        correct master Store.
172
172
        """
173
 
        from canonical.launchpad.interfaces.lpstorm import IMasterStore
 
173
        from lp.services.database.lpstorm import IMasterStore
174
174
        # Make it simple to write dumb-invalidators - initialized
175
175
        # _cached_properties to a valid list rather than just-in-time
176
176
        # creation.
207
207
 
208
208
    @classmethod
209
209
    def _get_store(cls):
210
 
        from canonical.launchpad.interfaces.lpstorm import IStore
 
210
        from lp.services.database.lpstorm import IStore
211
211
        return IStore(cls)
212
212
 
213
213
    def __repr__(self):
217
217
        return '<%s at 0x%x>' % (self.__class__.__name__, id(self))
218
218
 
219
219
    def destroySelf(self):
220
 
        from canonical.launchpad.interfaces.lpstorm import IMasterObject
 
220
        from lp.services.database.lpstorm import IMasterObject
221
221
        my_master = IMasterObject(self)
222
222
        if self is my_master:
223
223
            super(SQLBase, self).destroySelf()