On Thu, Apr 26, 2012 at 06:36:02PM +0200, Pierre-Yves Chibon wrote: > > The current version of HK relies on mongodb for the storage, but I want > to test HK with a traditionnal SQL backend. So I have started to work on > this. > > The interface I defined is there: > https://github.com/pypingou/kittystore/blob/master/kittystore/__init__.py > > And its implementation using SQLAlchemy is there: > https://github.com/pypingou/kittystore/blob/master/kittystore/kittysastore.py > > The mongodb implementation isn't done yet but should be quite trivial to > do (most function from the API were coming from it). > > The idea is that now, we can have different backend and each module > needing access to the emails can use the API directly without having to > bother about which storage system is behind. > Wacky looked at this today and asked if we should have the x-message-id-hash as another key value to look up an email. That seems proper to me. Would we want a separate function or to overload get_email() so that it can either take message_id or message_id_hash?
-Toshio
pgpPyulCoc0Ap.pgp
Description: PGP signature
_______________________________________________ Mailman-Developers mailing list Mailman-Developers@python.org http://mail.python.org/mailman/listinfo/mailman-developers Mailman FAQ: http://wiki.list.org/x/AgA3 Searchable Archives: http://www.mail-archive.com/mailman-developers%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-developers/archive%40jab.org Security Policy: http://wiki.list.org/x/QIA9