On Thu, Nov 10, 2011 at 2:40 PM, Izidor Matušov <[email protected]> wrote: > Hi Germán, > > Am 10.11.2011 01:44, schrieb Germán Gutiérrez: >> >> Izidor, looks like you are the master in this, any helloworld.py >> equivalent in backend world? > > Unfortunately, there is no well-written documentation or any helloworld. > (The feature was still not released). > > I recommend you to get > > bzr branch lp:~gtg-contributors/gtg/google_tasks > > and look at backends for launchpad and google tasks. They are in general > very similar although they do different things. (Google Tasks synchronize > your tasks, launchpad only imports tasks) > > Luca: I was thinking about lowering the barrier for writing a new backend. > There is a lot of redundant code for every backend (they are pretty much the > same). What about making more high level interface so "user programmer" just > provides the minimum of information (authenticate yourself, this is list of > remote tasks, add to GTG tasks which you do not have, give me tasks, that > has changed or were deleted so I can update them on server) I think it is > sufficient to specify only those 3 things and details can be solved by > internal, high-level interface. The goal might be to write a brand new, > simple backend under 99 lines of code. What do you say? Do you want to work > on it at the hackathon on 26th?
That's an interesting idea. There is an obvious trade-off between simplicity and generality, but we could provide this simple interface for most web-based backends (which share lots of similarities), and a more general one for the others. _______________________________________________ Mailing list: https://launchpad.net/~gtg-user Post to : [email protected] Unsubscribe : https://launchpad.net/~gtg-user More help : https://help.launchpad.net/ListHelp

