Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #15015

RE: webapp development in pure python

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <ramit.prasad@jpmorgan.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'completeness': 0.05; 'javascript,': 0.05; 'mvc': 0.07; 'wxpython': 0.07; 'python': 0.08; 'block.': 0.09; 'subject:python': 0.11; 'class,': 0.15; '712': 0.16; 'currencies': 0.16; 'disclaimers': 0.16; 'disclaimers,': 0.16; 'from:addr:jpmorgan.com': 0.16; 'hacked': 0.16; 'privilege,': 0.16; 'received:155.180': 0.16; 'received:159.53': 0.16; 'received:159.53.110': 0.16; 'received:169.70': 0.16; 'received:169.70.190': 0.16; 'received:172.18.0': 0.16; 'received:bankone.net': 0.16; 'received:exchad.jpmchase.net': 0.16; 'received:jpmchase.com': 0.16; 'received:jpmchase.net': 0.16; 'received:svr.bankone.net': 0.16; 'securities,': 0.16; 'side.': 0.16; 'stumbling': 0.16; 'url:disclosures': 0.16; 'url:jpmorgan': 0.16; 'advance': 0.18; 'developer,': 0.18; 'to:2**1': 0.20; 'header:In-Reply-To:1': 0.22; 'compiled': 0.23; 'interface': 0.23; 'received:169.254.1': 0.23; 'to:name:python-list@python.org': 0.23; 'code': 0.25; 'framework': 0.28; 'server': 0.29; 'theoretical': 0.29; 'module': 0.30; 'received:155': 0.30; 'received:159': 0.30; 'usually': 0.32; 'app': 0.33; 'to:addr:python-list': 0.33; 'received:169': 0.34; 'received:169.254': 0.34; 'received:172.18': 0.34; 'phone:': 0.35; 'data,': 0.35; 'charset:us-ascii': 0.36; 'header:Received:8': 0.36; 'doing': 0.36; 'accuracy': 0.37; 'query': 0.37; 'using': 0.37; 'but': 0.37; 'two': 0.37; 'should': 0.38; 'subject:: ': 0.39; 'either': 0.39; 'user': 0.39; 'to:addr:python.org': 0.39; 'personal': 0.60; 'more': 0.60; 'your': 0.61; 'subject': 0.61; 'expert': 0.62; 'projects': 0.63; 'information,': 0.65; 'legal': 0.70; 'url:email': 0.74; 'sale': 0.75; 'bank': 0.76; 'connection.': 0.77; 'investment': 0.77; 'purchase': 0.84; '>some': 0.84; 'something.': 0.84; 'technically': 0.93
X-DKIM Sendmail DKIM Filter v2.8.4 sj1.jpmchase.com p9QLlCOW018432
DKIM-Signature v=1; a=rsa-sha256; c=simple/simple; d=jpmorgan.com; s=smtpout; t=1319665632; bh=RojdhN3Ypcpd/WfKwqQv50kWATbEfqeL6AFQj1XQj1Y=; h=From:To:Date:Subject:Message-ID:References:In-Reply-To: Content-Transfer-Encoding:MIME-Version:Content-Type; b=CYPtG4DJzTXMaiA9w/PxECrkEsv3pcFWPku2TEE6/FbCfvOebXqhxIk0iVEvka2Nq BHfHpqbW3r9TufAl1OYvZGdgVqHBEF6MGPD3ssjJ2X/XOBkiT0P2QSFNRG92Vy0cJj KUrVKL8G1Zo/Hi1sdVLxbl+011VNXvAogKZFZ3NY=
From "Prasad, Ramit" <ramit.prasad@jpmorgan.com>
To Laszlo Nagy <gandalf@shopzeus.com>, "python-list@python.org" <python-list@python.org>
Date Wed, 26 Oct 2011 17:47:03 -0400
Subject RE: webapp development in pure python
Thread-Topic webapp development in pure python
Thread-Index AcyTM+nv82xQ20XSQQ69MMGichI4UQA8xe7Q
References <4EA6BEC3.5010206@shopzeus.com> <mailman.2209.1319552029.27778.python-list@python.org> <j86gkm$77v$1@dont-email.me> <4EA6E4DA.2080307@shopzeus.com>
In-Reply-To <4EA6E4DA.2080307@shopzeus.com>
Accept-Language en-US
Content-Language en-US
X-MS-Has-Attach
X-MS-TNEF-Correlator
x-cr-hashedpuzzle AASj DMcU DUyD Ecku E0x1 G0S1 IUwR Jmt3 J+pV KVRd K7cd Na+R NcwT OGyB Qp+T TKfu; 2; ZwBhAG4AZABhAGwAZgBAAHMAaABvAHAAegBlAHUAcwAuAGMAbwBtADsAcAB5AHQAaABvAG4ALQBsAGkAcwB0AEAAcAB5AHQAaABvAG4ALgBvAHIAZwA=; Sosha1_v1; 7; {E190BC09-EB87-47F3-B2E3-36D649B8D832}; cgBhAG0AaQB0AC4AcAByAGEAcwBhAGQAQABqAHAAbQBvAHIAZwBhAG4ALgBjAG8AbQA=; Wed, 26 Oct 2011 21:47:04 GMT; UgBFADoAIAB3AGUAYgBhAHAAcAAgAGQAZQB2AGUAbABvAHAAbQBlAG4AdAAgAGkAbgAgAHAAdQByAGUAIABwAHkAdABoAG8AbgA=
x-cr-puzzleid {E190BC09-EB87-47F3-B2E3-36D649B8D832}
acceptlanguage en-US
Content-Transfer-Encoding quoted-printable
MIME-Version 1.0
X-DLP-FWD Yes
Content-Type text/plain; charset="us-ascii"
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2239.1319665643.27778.python-list@python.org> (permalink)
Lines 26
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1319665643 news.xs4all.nl 6953 [2001:888:2000:d::a6]:55521
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:15015

Show key headers only | View raw


I am not really an expert web developer, so this is just my two cents.

> My Python module would connect to a database server and query 
>some data, then display it in a grid. This cannot be compiled into 
>javascript because of the database server connection. 

You technically can connect to databases from JavaScript. It is a terrible idea, but achievable. Not really sure how it would get "compiled" into JavaScript, so it is possible that is the stumbling block.
http://stackoverflow.com/questions/857670/how-to-connect-to-sql-server-database-from-javascript

>I would have to create the server side part separately, the user interface separately, and hand-code the communication between the widets and the server side.

As far as I know, this is the Right way to do a web/GUI apps; you may want to read about the MVC design pattern.

>I would like to use this theoretical web based framework just like pygtk or wxPython

Even in wxPython/pygtk, you should be using MVC pattern. Usually if your app is one class, you either have a trivial application or you are doing it wrong. Of course, that really applies to larger projects more than hacked together code for personal use.

Apologies in advance if I misunderstood something.

Ramit


Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology
712 Main Street | Houston, TX 77002
work phone: 713 - 216 - 5423

--



This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at http://www.jpmorgan.com/pages/disclosures/email.  

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: webapp development in pure python Arnaud Delobelle <arnodel@gmail.com> - 2011-10-25 15:13 +0100
  Re: webapp development in pure python "Martin P. Hellwig" <martin.hellwig@gmail.com> - 2011-10-25 15:19 +0100
    Re: webapp development in pure python Laszlo Nagy <gandalf@shopzeus.com> - 2011-10-25 18:33 +0200
      Re: webapp development in pure python alex23 <wuwei23@gmail.com> - 2011-10-25 20:15 -0700
      Re: webapp development in pure python Rebelo <puntabluda@gmail.com> - 2011-10-26 00:29 -0700
        Re: webapp development in pure python Roy Smith <roy@panix.com> - 2011-10-26 09:06 -0400
      Re: webapp development in pure python Rebelo <puntabluda@gmail.com> - 2011-10-26 00:29 -0700
    RE: webapp development in pure python "Sells, Fred" <fred.sells@adventistcare.org> - 2011-10-25 23:00 -0400
    RE: webapp development in pure python "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2011-10-26 17:47 -0400
    Re: webapp development in pure python Chris Angelico <rosuav@gmail.com> - 2011-10-27 14:05 +1100
      Re: webapp development in pure python 88888 Dihedral <dihedral88888@googlemail.com> - 2011-10-26 22:04 -0700
        Re: webapp development in pure python Chris Angelico <rosuav@gmail.com> - 2011-10-27 16:18 +1100
          Re: webapp development in pure python 88888 Dihedral <dihedral88888@googlemail.com> - 2011-10-26 23:37 -0700
          Re: webapp development in pure python 88888 Dihedral <dihedral88888@googlemail.com> - 2011-10-26 23:37 -0700
      Re: webapp development in pure python 88888 Dihedral <dihedral88888@googlemail.com> - 2011-10-26 22:04 -0700

csiph-web