Thanks, guys! DG
Message: 5 > Date: Wed, 8 May 2013 23:44:55 -0700 > From: Jim Gray <[email protected]> > To: Seattle Python Interest Group <[email protected]> > Subject: Re: [SEAPY] Off topic, except that I'd like to use Python for > the project > Message-ID: > < > ca+y4obucdjfm4wpqesav+gacsodhbki2gzkggxhyz2wuu+r...@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > I think you're talking about Flask & Flask-WTF. > > Jim > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.seapig.org/pipermail/seattle-python/attachments/20130508/022e97d2/attachment-0001.html > > > > ------------------------------ > > Message: 6 > Date: Thu, 9 May 2013 07:05:04 -0400 > From: Chris Barker - NOAA Federal <[email protected]> > To: Seattle Python Interest Group <[email protected]> > Subject: Re: [SEAPY] Off topic, except that I'd like to use Python for > the project > Message-ID: <-7154996020384609227@unknownmsgid> > Content-Type: text/plain; charset=UTF-8 > > David, > > Depending on what you need to do, running a python based web server is > actually remarkably easy--there are a bunch of web frameworks that are > each suited to different uses, but one or more is likely to suit your > needs. > > That being said, an all-in-the browser app could be a fine option as > well. Look for info on "single page" apps, or " rich Internet apps" > for info. > > Note that the only language in browsers is JavaScript , so that's what > you need to use. The exceptions to this are other languages that are > translated to JavaScript. For python, check out pyjamas and brython. > > In fact, pyjamas may be just what you need ( short of using JavaScript > directly). If you do want to go the JavaScript route, check out > backbone.js > > Good luck! > > Chris > > On May 9, 2013, at 2:00 AM, David Goldsmith <[email protected]> > wrote: > > > So I'm writing this GUI app using wxPython when it dawns on me: why > don't I write it as a Web app (by which I mean Wikipedia's second > definition, namely "[an] application that is coded in a browser-supported > programming language...and reliant on a common web browser to render the > application executable." Then I "discover" a basic problem: Web apps don't > appear to be able to straightforwardly write to local files (doing so is a > central function of the intended app). I tried the idea of having the Web > app post form inputs to a compiled Python executable, which would then > format the inputs and write the file, but, as I came to understand it, in > order for all this to occur "locally," my app would have to run a local > "server" to which the Web app would post and which would "run" the Python > executable--too complicated for my purpose! (Which is to wade slowly into > Web app development, not dive right into the deep-end.) So the > "workaround" I'm contemplating now is to have the a > pp create the text--it is meant to be straight ascii, not even > unicode--and render it in a browser viewing object, e.g., a frame, tab, or > popup, and then require the user to employ the browser's File->Save Page > As... menu function to save the result. So my question is: can anyone > point me to an example of a page that uses client-side code (preferably > Python, of course) to process html form text inputs into a page which the > code then renders in a new browser view object? (Yes, I know I've probably > visited thousands of such already and just never registered that that is > what they're doing because I've never cared before.) Thanks! > > > > OlyDLG > > > End of seattle-python Digest, Vol 109, Issue 12 > *********************************************** >
