Edgewall Software

Changes between Version 8 and Version 9 of TracDev/ApiChanges/0.12


Ignore:
Timestamp:
Oct 9, 2009, 2:42:05 PM (15 years ago)
Author:
Remy Blank
Comment:

Added a section about the CachedRepository constructor change (#8572).

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/ApiChanges/0.12

    v8 v9  
    108108See #8020 and #8675 for details.
    109109
     110==== `CachedRepository` constructor ^[source:sandbox/multirepos/trac/versioncontrol/cache.py@8353:45#L40 (0.12)] [source:branches/0.11-stable/trac/versioncontrol/cache.py@8353:45#L38 (0.11)]^ ==== #CachedRepository
     111''TODO: Fix (0.12) link after multirepos merge''
     112
     113In 0.11, the first argument to the `CachedRepository` constructor was a callable that would return a DB instance when called. In 0.12, the first argument has been changed to an `Environment` instance. Subclasses of `CachedRepository` must therefore be changed accordingly, and components implementing `IRepositoryConnector` and returning a `CachedRepository` or a subclass must pass `self.env` instead of a `getdb` callable.
     114
    110115
    111116== New in the 0.12 API ==