On Mon, 2007-01-22 at 11:29 -0900, Joshua J. Kugler wrote: > On Monday 22 January 2007 08:02, Cliff Wells wrote: > > > Is there any option to return the data as a python pickle? With a good > > > Pythoon GUI toolkit (Qt, Gtk, Wx, etc) you could make a really nice front > > > end to a nice back-end data service. > > > > I've done something similar using wxPython and TurbGears, but I > > approached completely differently: I used the XRC GUI description > > language provided by wxPython and served that from my TurboGears app > > rather than HTML. Required no changes to TurboGears, simply some > > templates. It was also nice in that I very rarely had to push a > > new .exe to the Windows users since 90% of the changes happened on the > > Linux server (i.e. just like a webapp ought to be). > > > > That being said, I think if I were to redo it all today I'd use this: > > http://techgame.net/projects/Framework/wiki/ > > which looks to be far superior to XRC. > > Wow...that just gave me all sorts of fun (possibly wrong) ideas. :) That > framework looks cool. Another idea you gave me was sending Qt .ui files over > the wire and loading them at run time, along with the Python code to set up > the signals and slots. There is also this: http://pyjamas.pyworks.org/ > Write Python code, compile to Javascript...that looks pretty cool too. All > sorts of fun ideas.
The method I used was I had a basic "bootstrap" .exe file that could parse a simple .ini file, fetch a zipfile of Python modules (since Python can import from a zipfile now) and then finally begin fetching the interface code in the form of XRC files. This way I only ever had to push out .exe updates if I changed the bootstrap code (not very often). As an aside, this was not a public application, so I didn't need to worry a lot about security issues that pushing Python modules out implies. As another aside, if you think that's a horrible security issue, then I'd recommend against using easy_install ;-) I *would* however be certain to use SSL and have the client validate the certificate before it downloads any code. Have fun. Cliff --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears Trunk" 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/turbogears-trunk?hl=en -~----------~----~----~----~------~----~------~--~---
