[PATCHv2] Re: Create an abstract Repository class

Nicolas Sebrecht nicolas.s-dev at laposte.net
Thu Mar 3 17:20:28 GMT 2011


On Thu, Mar 03, 2011 at 11:05:15AM +0100, Sebastian Spaeth wrote:
> 
> A Repository() returns the correctly instanciated dervivate of a
> BaseRepository, depending on the parameters passed to it. The returned
> instance is eg an ImapRepository(). This makes the code look nicer,
> and we have less functions lying around outside of classes (no more
> global LoadRepository() function).
> 
> This will also enable us to conveniently hand back a
> LocalStatusRepository based on SQLITE rather than plain text, if the
> user configures this to be the experimental and optional backend
> (once it exists).
> 
> Signed-off-by: Sebastian Spaeth <Sebastian at SSpaeth.de>
> ---
> v2 has been based on current master. The remaining (c) 202-2007 by John
> is because most of the code logic has been copied from
> repository/Base.py which has that copyright, so I retained it. I added a
> newer Copyright header as you proposed.

Thanks, applied.

-- 
Nicolas Sebrecht




More information about the OfflineIMAP-project mailing list