~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

Clear up a heck of a lot of imports from canonical.launchpad.interfaces.

Show diffs side-by-side

added added

removed removed

Lines of Context:
183
183
        We refetch any parameters from different stores from the
184
184
        correct master Store.
185
185
        """
186
 
        from canonical.launchpad.interfaces import IMasterStore
 
186
        from canonical.launchpad.interfaces.lpstorm import IMasterStore
187
187
        # Make it simple to write dumb-invalidators - initialised
188
188
        # _cached_properties to a valid list rather than just-in-time creation.
189
189
        self._cached_properties = []
219
219
 
220
220
    @classmethod
221
221
    def _get_store(cls):
222
 
        from canonical.launchpad.interfaces import IStore
 
222
        from canonical.launchpad.interfaces.lpstorm import IStore
223
223
        return IStore(cls)
224
224
 
225
225
    def __repr__(self):
229
229
        return '<%s at 0x%x>' % (self.__class__.__name__, id(self))
230
230
 
231
231
    def destroySelf(self):
232
 
        from canonical.launchpad.interfaces import IMasterObject
 
232
        from canonical.launchpad.interfaces.lpstorm import IMasterObject
233
233
        my_master = IMasterObject(self)
234
234
        if self is my_master:
235
235
            super(SQLBase, self).destroySelf()