Re: Making a pass form cgi = webpy framework

2013-06-28 Thread Robert Kern
On 2013-06-28 04:38, Νίκος wrote: Στις 28/6/2013 2:08 πμ, ο/η Cameron Simpson έγραψε: Pick a simple framework or templating engine and try it. I have no recommendations to make in this area myself. Can you explain to me the difference of the former and latter? A templating engine takes

Re: Making a pass form cgi = webpy framework

2013-06-28 Thread Νίκος
Στις 28/6/2013 12:35 μμ, ο/η Robert Kern έγραψε: On 2013-06-28 04:38, Νίκος wrote: Στις 28/6/2013 2:08 πμ, ο/η Cameron Simpson έγραψε: Pick a simple framework or templating engine and try it. I have no recommendations to make in this area myself. Can you explain to me the difference of the

Re: Making a pass form cgi = webpy framework

2013-06-28 Thread Robert Kern
On 2013-06-28 11:15, Νίκος wrote: Στις 28/6/2013 12:35 μμ, ο/η Robert Kern έγραψε: On 2013-06-28 04:38, Νίκος wrote: Στις 28/6/2013 2:08 πμ, ο/η Cameron Simpson έγραψε: Pick a simple framework or templating engine and try it. I have no recommendations to make in this area myself. Can you

Re: Making a pass form cgi = webpy framework

2013-06-28 Thread rusi
On Friday, June 28, 2013 3:45:27 PM UTC+5:30, Νίκος wrote: Στις 28/6/2013 12:35 μμ, ο/η Robert Kern έγραψε: I see, your explanation started to make things clearer to me. What is the easiest and simplest web framework you advise me to use? Here's a picture of the web-development scene as I

Re: Making a pass form cgi = webpy framework

2013-06-27 Thread Νίκος
Στις 25/6/2013 9:00 μμ, ο/η ru...@yahoo.com έγραψε: 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

Re: Making a pass form cgi = webpy framework

2013-06-27 Thread Cameron Simpson
On 27Jun2013 16:32, Νίκος ni...@superhost.gr wrote: | a) keep my existing Python cgi way that embed print ''' statements | within python code to displays mostly tables? I'd argue against this approach. Like hand constructing SQL, this is rife with opportunity to make syntax errors, either

Re: Making a pass form cgi = webpy framework

2013-06-27 Thread Νίκος
Στις 28/6/2013 2:08 πμ, ο/η Cameron Simpson έγραψε: On 27Jun2013 16:32, Νίκος ni...@superhost.gr wrote: | a) keep my existing Python cgi way that embed print ''' statements | within python code to displays mostly tables? I'd argue against this approach. Like hand constructing SQL, this is rife

Re: Making a pass form cgi = webpy framework

2013-06-25 Thread rurpy
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. Good

Re: Making a pass form cgi = webpy framework

2013-06-25 Thread Joel Goldstick
On Tue, Jun 25, 2013 at 2:00 PM, ru...@yahoo.com wrote: 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

Re: Making a pass form cgi = webpy framework

2013-06-25 Thread Νίκος
Στις 25/6/2013 9:53 μμ, ο/η Joel Goldstick έγραψε: I haven't tried webpy but I have used django. django has a tutorial that takes a couple of hours to set up and go through completely. Its not just reading, its hands on trying out a small website. It gives a very good understanding of what

Re: Making a pass form cgi = webpy framework

2013-06-24 Thread Νίκος
Στις 24/6/2013 7:37 πμ, ο/η Michael Torrie έγραψε: 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.

Re: Making a pass form cgi = webpy framework

2013-06-24 Thread rusi
On Monday, June 24, 2013 1:02:51 PM UTC+5:30, Νίκος wrote: And also in my pelatologio.py and other script i use if statements to check if user submitted data or not so to print them on screen and then exit, like modularization. foe example: if( log ): name = log print

Making a pass form cgi = webpy framework

2013-06-23 Thread Νίκος
Hello, as you all know i'am using cgi method for my web script. I have been told that webpy is the way to go sor script simple enough as mines. Can you please show me the simplest example you can think of utilizing a templates (index.html) and a python script (metrites.py) ? I want to see

Re: Making a pass form cgi = webpy framework

2013-06-23 Thread rurpy
On 06/23/2013 07:01 AM, Νίκος wrote: Hello, as you all know i'am using cgi method for my web script. I have been told that webpy is the way to go sor script simple enough as mines. Can you please show me the simplest example you can think of utilizing a templates (index.html) and a

Re: Making a pass form cgi = webpy framework

2013-06-23 Thread Νίκος
Στις 23/6/2013 5:57 μμ, ο/η ru...@yahoo.com έγραψε: On 06/23/2013 07:01 AM, Νίκος wrote: Hello, as you all know i'am using cgi method for my web script. I have been told that webpy is the way to go sor script simple enough as mines. Can you please show me the simplest example you can think

Re: Making a pass form cgi = webpy framework

2013-06-23 Thread rurpy
On 06/23/2013 09:15 AM, Νίκος wrote: Στις 23/6/2013 5:57 μμ, ο/η ru...@yahoo.com έγραψε: On 06/23/2013 07:01 AM, Νίκος wrote: Hello, as you all know i'am using cgi method for my web script. I have been told that webpy is the way to go sor script simple enough as mines. Can you please show

Re: Making a pass form cgi = webpy framework

2013-06-23 Thread Νίκος
Στις 24/6/2013 1:29 πμ, ο/η ru...@yahoo.com έγραψε: In this simple example, there is not much advantage of Mako over your templates. But with more complicated cases, for instance, when you have tables or forms that you want to dynamically construct from external data (info extracted from a

Re: Making a pass form cgi = webpy framework

2013-06-23 Thread Michael Torrie
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

Re: Making a pass form cgi = webpy framework

2013-06-23 Thread rusi
On Monday, June 24, 2013 10:07:57 AM UTC+5:30, Michael Torrie wrote: 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