gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] json service


From: lkcl
Subject: Re: [Gnumed-devel] json service
Date: Thu, 15 Jul 2010 07:07:04 -0700 (PDT)



Sebastian Hilbert wrote:
> 
> Once cleaned up you could always direct people towards GNUmed to show how
> your 
> work can be used in real life projects.
> 
that's the plan.  and, i just couldn't sit there and let you dig yourself
into a massive painful hole, _especially_ as the project is "gnu med".

Sebastian Hilbert wrote:
> 
>>  what i recommend that you do now is apply
>> 0008-add-JSONRPC-pyjamas-example.patch, and compile it up using
>> pyjsbuild: i sent instructions in a previous message, including the
>> URL to browse to (on 127.0.0.1:8080 of course).
>> 
> That I have done already and can report that it works :-)
> 
> didn't I mention that  ? :-)
> 

no?  hooray!  good stuff.

ok, then you want to try the latest additions, 0009-0011 at
http://lkcl.net/gnumed

you'll find a "grid" gets added if you click the last option "get
documents".  i pre-filled a pkid of 12 because that's captain kirk's id in
the test database.

btw there _are_ limitations in the proxyapp, such as "if the service dies,
the proxy barfs" taking _all_ the current connections with it.  but, if you
can put up with it for now, or never encounter a problem, great.

as for how to proceed, you don't _have_ to take my advice, you can always
now use any javascript-based framework that you like, but i would encourage
you to use pyjamas, and to use the widgets such as pyjamas.ui.Menu and so on
to make the web app as identical to the wxWidgets one as you can.

the reason why is very simple: as the pyjamas widget set really _is_ like a
desktop widget set, you can probably, once you get into it, do
rote-conversion of every single dialog box and menu option into pyjamas,
from wxWidgets, one by one, with not very much in the way of actual thought
required.

the only thing that's going to be a bit of a pain is the separation between
"fetch data" and "display data" which that onRemoteResponse thing shows you
how to do, but trust me when i say that this _is_ an advantage in terms of
UI responsiveness.

l.

-- 
View this message in context: 
http://old.nabble.com/json-service-tp29171991p29173416.html
Sent from the GnuMed - Dev mailing list archive at Nabble.com.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]