2009/4/28 Peter Bienstman <[email protected]>: > > On Tuesday 28 April 2009 07:37:34 am Robert Gravina wrote: > >> How is that client-server communication done? If the same >> protocol/method can be used from Javascript, then you could write >> webapp without relying on those frameworks, I suppose. > > At the highest level of abstraction, a GUI can be written by implementing some > functions that are called by libmnemosyne, like set_question(), .... > Communication also goes the other way, with e.g. grade_answer() > > See > > http://bazaar.launchpad.net/~peter-bienstman/mnemosyne- > proj/pbienst/annotate/head%3A/mnemosyne/mnemosyne/ppygui_ui/review_wdgt.py > > All of this is being driven by a controller inside of libmnemoyse. I guess > using that model could be enough to get a first working prototype.
OK, so libmnenosyne is a framework (it calls you)? If libmnenosyne were to call functions which then updated a remote web client, you could possibly do it. This is where wrapping libmnenosyne in a web framework which made this web client/server communication easier would help. Otherwise, it would be too much work IMO. > If not, or for a later more sophisticated version, e.g. one that sends out 10 > cards at the same time to save bandwidth, there are more low level functions > like get_next_card, which you can use to write your own controller. It would > be nice that such a controller was written in a way that is independent of the > exact framework one uses, so that it can be reused later on. I used to think that way too but after writing such much "reusable" code which was never reused (or really that reusable anyway - it's hard to know what makes something reusable ahead of time) I tend to now worry about that when the time comes - i.e. refactor it for reuse then. Robert --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "mnemosyne-proj-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/mnemosyne-proj-users?hl=en -~----------~----~----~----~------~----~------~--~---
