Re: A webpy Templetor question

2015-07-13 Thread Chris Angelico
On Tue, Jul 14, 2015 at 9:13 AM, wrote: > #in my application.py: > def checknow(): > ... > return TN_str > > render = web.template.render('templates/',globals={'stat':checknow}) > > #in the template: > $def with(checknow) > ... ... > Test: $stat(checknow) You've effectively taken a refer

A webpy Templetor question

2015-07-13 Thread yongzhi . chen
Hi all, I want to display/update several metrics in a normal page (not in a webpy form). These metrics got updated every minute and were stored in a log file. I prepared a function to open that log file then analyze the last several lines to collect them. I want these metrics got updated in

webpy

2013-11-28 Thread Silvio Siefke
Hello, is here someone which has run webpy with nginx? I has follow the tutorial on webpy.org, but sometimes run sometimes not. It looks not staple. I try to start spawn-fcgi but it looks not so as really want start. It were nice someone can help. Wish good day/night. Thank you & Greet

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-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 e

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 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 you

Re: Making a pass form cgi => webpy framework

2013-06-27 Thread Νίκος
Στις 28/6/2013 2:08 πμ, ο/η Cameron Simpson έγραψε: On 27Jun2013 16:32, Νίκος 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

Re: Making a pass form cgi => webpy framework

2013-06-27 Thread Cameron Simpson
On 27Jun2013 16:32, Νίκος 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 outright by mistyping HTML

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 o

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

Re: Making a pass form cgi => webpy framework

2013-06-25 Thread Joel Goldstick
html "works" without > spurious stuff like code. > > And when you look at the cgi code, you see only the Python code > that is needed to get the variable data that is displayed in the > page without the distraction of a lot of html stuff. > -- > http://mail.python

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 que

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 >

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. So

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 fil

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 o

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 datab

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 so

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 c

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 >

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 t

Re: Webpy and UnicodeDecodeError

2009-12-18 Thread Dave Angel
Oscar Del Ben wrote: You'll notice that one of the strings is a unicode one, and another one has the character 0x82 in it. Once join() discovers Unicode, it needs to produce a Unicode string, and by default, it uses the ASCII codec to get it. If you print your 'l' list (bad name, by the way,

Re: Webpy and UnicodeDecodeError

2009-12-18 Thread Oscar Del Ben
On Dec 18, 4:43 pm, Dave Angel wrote: > Oscar Del Ben wrote: > > So I'm trying to send a file through webpy and urllib2 but I can't get > > around these UnicodeErrors. Here's the code: > > > # controller > > > x = web.input(video_original={}) >

Re: Webpy and UnicodeDecodeError

2009-12-18 Thread Dave Angel
Oscar Del Ben wrote: So I'm trying to send a file through webpy and urllib2 but I can't get around these UnicodeErrors. Here's the code: # controller x = web.input(video_original={}) params = {'foo': x['foo']} files = (('video[original]

Webpy and UnicodeDecodeError

2009-12-18 Thread Oscar Del Ben
So I'm trying to send a file through webpy and urllib2 but I can't get around these UnicodeErrors. Here's the code: # controller x = web.input(video_original={}) params = {'foo': x['foo']} files = (('video[original]', 'test', x['video

unified way or cookbook to access cheetah from other frameworks django/webpy/pylons

2009-06-05 Thread mobiledreamers
can you or tavis or one of the cheetah masters please show us how to use cheetah from webpy the only useful thing webpy cheetah.py does is replace the #include with the content of the files Can you share a simple snippet/cookbook example on how to hook up cheetah from other frameworks such as

How do you serve Cheetah in production? webpy+cheetah

2009-05-29 Thread mobiledreamers
How do you serve *Cheetah* in *production*? Guys can you share the setup on how to precompile and serve cheetah in production Since we dont compile templates in webpy it is getting upstream time out errors. If you could share a good best practise it would help * Jeremy jeremy.ja...@gmail.com

Re: Webpy vs Django?

2008-06-03 Thread cirfu
wow now i have django running. now i see... -- http://mail.python.org/mailman/listinfo/python-list

Re: Webpy vs Django?

2008-06-03 Thread [EMAIL PROTECTED]
> i played with webpy a bit and it is easy to get going with. but django > seems like once you have it all up and running it will be easier. > just that the barrier of entry is much higher. I can't comment on webpy, but yes, Django has a bit more of a learning curve in some areas,

Re: Webpy vs Django?

2008-06-03 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : i have been trying to get Django running for 2 days now and it drives me crazy. i played with webpy a bit and it is easy to get going with. but django seems like once you have it all up and running it will be easier. just that the barrier of entry is much higher

Re: Webpy vs Django?

2008-06-03 Thread Michele Simionato
On Jun 3, 3:14 pm, [EMAIL PROTECTED] wrote: > > what do you think of webpy for big projects that need performance? A better question would be: do you need features which are in Django and not in webpy? If webpy suits your needs and you are happy with it, keep it. OTOH, if you need more than

Webpy vs Django?

2008-06-03 Thread circularfunc
i have been trying to get Django running for 2 days now and it drives me crazy. i played with webpy a bit and it is easy to get going with. but django seems like once you have it all up and running it will be easier. just that the barrier of entry is much higher. is django worth it? seems so

Re: psyco+webpy

2006-06-26 Thread Amaury Forgeot d'Arc
a a écrit : >> psyco.cannotcompile(??.GET) this gives an error message > invalid syntax Oh, I assumed that you would replace the ?? by the correct expression. You need to specify the GET function of the class you've written in the file "codepsyco.py" (I don't know the class name. It does not appe

Re: psyco+webpy

2006-06-26 Thread a
> psyco.cannotcompile(??.GET) this gives an error message invalid syntax Amaury Forgeot d'Arc wrote: > a a écrit : > > hi i tried psyco+webpy > > > > here is the error that i got > > please let me know if any of you has success run psyco+webpy > >

Re: psyco+webpy

2006-06-26 Thread Amaury Forgeot d'Arc
a a écrit : > hi i tried psyco+webpy > > here is the error that i got > please let me know if any of you has success run psyco+webpy > thanks > > import web, psyco > urls = ( > '/', 'view', > '/add','add' > ) &

psyco+webpy

2006-06-26 Thread a
hi i tried psyco+webpy here is the error that i got please let me know if any of you has success run psyco+webpy thanks import web, psyco urls = ( '/', 'view', '/add','add' ) psyco.full() psyco.log() psyco.profile() Launching server: http://0.0.0.