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
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
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
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
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
Στις 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
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
Στις 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
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
Στις 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
Στις 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
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
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
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
>
Στις 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
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
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
Στις 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
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
Στις 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
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
>
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
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,
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={})
>
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]
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
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*?
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
wow now i have django running. now i see...
--
http://mail.python.org/mailman/listinfo/python-list
> 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,
[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
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
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
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
> 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
> >
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'
> )
&
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.
37 matches
Mail list logo