Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #49029
| Path | csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <torriem@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.006 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; '(at': 0.04; 'desired.': 0.07; 'subject:form': 0.07; '(mysql,': 0.09; 'latter': 0.09; 'permissions': 0.09; 'postgresql,': 0.09; 'sql,': 0.09; 'statements': 0.09; 'wrapper': 0.09; 'python': 0.11; 'template': 0.14; 'data)': 0.16; 'essential,': 0.16; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'permissions,': 0.16; 'subject:pass': 0.16; 'templating': 0.16; 'apps': 0.16; 'essential': 0.16; 'wrote:': 0.18; 'later': 0.20; 'print': 0.22; 'creating': 0.23; 'header:User-Agent:1': 0.23; 'frameworks': 0.24; 'script': 0.25; 'compare': 0.26; 'nearly': 0.26; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'quickly': 0.29; 'gives': 0.31; 'code': 0.31; 'cgi': 0.31; 'file': 0.32; 'worked': 0.33; 'becomes': 0.33; 'framework': 0.33; 'not.': 0.33; 'actual': 0.34; 'table': 0.34; 'but': 0.35; 'leads': 0.36; 'doing': 0.36; 'method': 0.36; 'changing': 0.37; 'easily': 0.37; 'message- id:@gmail.com': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'rather': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'skip:u 10': 0.60; 'easy': 0.60; 'eventually': 0.60; 'logged': 0.60; 'most': 0.60; 'simple': 0.61; "you'll": 0.62; 'become': 0.64; 'provide': 0.64; 'relatively': 0.65; 'dont': 0.67; 'rendering': 0.68; 'wish': 0.70; 'grow': 0.77; 'yourself': 0.78; 'decorate': 0.84; 'etc),': 0.84; 'subject:Making': 0.84 |
| X-Virus-Scanned | amavisd-new at torriefamily.org |
| Date | Sun, 23 Jun 2013 22:37:57 -0600 |
| From | Michael Torrie <torriem@gmail.com> |
| User-Agent | Mozilla/5.0 (X11; Linux i686; rv:10.0.12) Gecko/20130105 Thunderbird/10.0.12 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: Making a pass form cgi => webpy framework |
| References | <kq6rip$51m$1@news.grnet.gr> <2978d13b-ca0d-4f3b-bd62-a2fcf346c46a@googlegroups.com> <kq73fg$51m$2@news.grnet.gr> <6624335b-0db7-48d8-897c-be7c960a253b@googlegroups.com> <kq889f$vnl$1@news.grnet.gr> |
| In-Reply-To | <kq889f$vnl$1@news.grnet.gr> |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 8bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| 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.3738.1372048685.3114.python-list@python.org> (permalink) |
| Lines | 37 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1372048685 news.xs4all.nl 15956 [2001:888:2000:d::a6]:60651 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:49029 |
Show key headers only | View raw
On 06/23/2013 07:44 PM, Νίκος wrote: > Why use mako's approach which requires 2 files(an html template and the > actual python script rendering the data) when i can have simple print > statements inside 1 files(my files.py script) ? > After all its only one html table i wish to display. Sooner or later your needs grow to the point where your single python CGI file is mixing so much html and python code that it becomes unwieldy. > And if we wanted to to compare an html template method to a web > framework solution? A web framework gives you database abstractions so you can easily target most SQL servers without changing code (MySQL, MS SQL, PostgreSQL, Oracle, etc), and they also provide frameworks for doing authentication and authorization. Authorization in particular becomes unwieldy quickly if you have to do it all in CGI. With a framework it's relatively easy to decorate a view with a wrapper that can only allow the view to be displayed if a web client has logged in with a particular set of permissions (stored in your user database of coures). > What are the benefits of one over the other? If you need to do user logins, a framework is going to become rather essential, in my opinion. At least if you need to support fine-grained permissions, which is what most enterprise web apps require (at least the ones I worked on). > I know you dont use the latter but this questios is for averybody that does. Personally I feel that a templating engine is essential for any web development, CGI or not. Mixing html and code leads to an unmaintainable mess. A framework is not essential, but often desired. If you don't use a framework, eventually you'll find yourself creating your own framework in essence, though often not nearly as robustly or as flexibly.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Making a pass form cgi => webpy framework Νίκος <nikos@superhost.gr> - 2013-06-23 16:01 +0300
Re: Making a pass form cgi => webpy framework rurpy@yahoo.com - 2013-06-23 07:57 -0700
Re: Making a pass form cgi => webpy framework Νίκος <nikos@superhost.gr> - 2013-06-23 18:15 +0300
Re: Making a pass form cgi => webpy framework rurpy@yahoo.com - 2013-06-23 15:29 -0700
Re: Making a pass form cgi => webpy framework Νίκος <nikos@superhost.gr> - 2013-06-24 04:44 +0300
Re: Making a pass form cgi => webpy framework Michael Torrie <torriem@gmail.com> - 2013-06-23 22:37 -0600
Re: Making a pass form cgi => webpy framework rusi <rustompmody@gmail.com> - 2013-06-23 21:49 -0700
Re: Making a pass form cgi => webpy framework Νίκος <nikos@superhost.gr> - 2013-06-24 10:32 +0300
Re: Making a pass form cgi => webpy framework rusi <rustompmody@gmail.com> - 2013-06-24 08:51 -0700
Re: Making a pass form cgi => webpy framework rurpy@yahoo.com - 2013-06-25 11:00 -0700
Re: Making a pass form cgi => webpy framework Joel Goldstick <joel.goldstick@gmail.com> - 2013-06-25 14:53 -0400
Re: Making a pass form cgi => webpy framework Νίκος <nikos@superhost.gr> - 2013-06-26 08:31 +0300
Re: Making a pass form cgi => webpy framework Νίκος <nikos@superhost.gr> - 2013-06-27 16:32 +0300
Re: Making a pass form cgi => webpy framework Cameron Simpson <cs@zip.com.au> - 2013-06-28 09:08 +1000
Re: Making a pass form cgi => webpy framework Νίκος <nikos@superhost.gr> - 2013-06-28 06:38 +0300
Re: Making a pass form cgi => webpy framework Robert Kern <robert.kern@gmail.com> - 2013-06-28 10:35 +0100
Re: Making a pass form cgi => webpy framework Νίκος <nikos@superhost.gr> - 2013-06-28 13:15 +0300
Re: Making a pass form cgi => webpy framework Robert Kern <robert.kern@gmail.com> - 2013-06-28 11:30 +0100
Re: Making a pass form cgi => webpy framework rusi <rustompmody@gmail.com> - 2013-06-28 07:28 -0700
csiph-web