Merge lp:~rockstar/entertainer/storage-branch into lp:entertainer
Proposed by
Paul Hummer
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp:~rockstar/entertainer/storage-branch |
Merge into: | lp:entertainer |
Diff against target: | None lines |
To merge this branch: | bzr merge lp:~rockstar/entertainer/storage-branch |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Matt Layman | Approve | ||
Review via email: mp+3427@code.launchpad.net |
To post a comment you must log in.
This branch does a few things. The original reason for this branch was to music_tracks, and the
define an abstract interface that would stand as the contract for which all
other storage facilities can inherit and implement. This allows Entertainer's
client to know nothing about HOW it's getting its info, and just receive it
based on a storage object implementing this base Storage class. When the
client wants all the music tracks, it just calls storage.
storage implementation hides the gory details from the client.
One of my next branches will implement this Storage in a LocalStorage flavor,
allowing me to demonstrate how this will work, and to work out an kinks in the
implementation (and truly there will be).
Along with that, I started consolidating exceptions into the exceptions module. This will allow us to keep track of what
entertainerlib.
types of Exceptions we have already created, so we don't go creating more. I
haven't grabbed all the Entertainer specific exceptions, but I at least wanted
to demonstrate what I was trying to achieve.
There is a lint warning R0921 that is my fault. It's detected that Storage is
an abstract class and lets me know I haven't implemented it anywhere.
Apparently pylint doesn't like disabling of the refactoring warnings, and since
it's a temporary warning, I thought we could let it slide. If you as the
reviewer feel I should do something about it, then I'll probably create an
empty class that "implement" Storage for now.
-- theironlion. net
Paul Hummer
http://
1024/862FF08F C921 E962 58F8 5547 6723 0E8C 1C4D 8AC5 862F F08F