Hi Philippe, Thanks for your interest and for your efforts ;)
> I am proposing inclusion of a new extension that allows the user to post > an activity to a Dailymile [1] stream. The current code is maintained on > GitHub [2]. Sounds great! > The extension adds a button "Post to Dailymile" that will use the > Dailymile API to add an entry on the user's Dailymile activity stream. > > There are some technical gray areas that I would like to point out. > First, the extension requires an additional library, python-oauth to > authenticate and communicate with the service. This adds a new > requirement to Pytrainer. Additional library should be no issue at all. > Also, it requires storage of an OAuth access > token, which is done right now by writing it to disk in clear in a file > such as ~/.pytrainer/dailymile.json. I am unsure if this is good practice. I have some experience with Facebook's Oauth and if I remember well, token is valid just for one session, so if it is the same case here, saving it without encryption should be no issue. Regarding storage, what about creating a new simple table in DB? > The current code -- being basically a hack that allows me to automate > the process -- includes almost no error handling and is probably not > very robust. However, I hope the code is clean enough that it may be > useful and easily improved. Well, let's have a look first and then we can make a proposal to get it included in pytrainer with a simple mini roadmap > [1] http://www.dailymile.com/ > [2] https://github.com/deuxpi/pytrainer/tree/dailymile-extension Thanks again for the interest. Regards, David ------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 _______________________________________________ Pytrainer-devel mailing list Pytrainer-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytrainer-devel