omain/book/science/9
- requests are mapped to an object tree that is "mounted" on
cherrypy.root
(for instance: "cherrypy.root.user", "cherrypy.root.user.remi", ...)
- method must be explicitly exposed with a decorator "@cherrypy.expose"
(or "index.exposed = True" for Python-2.3)
Remi.
http://www.cherrypy.org
--
http://mail.python.org/mailman/listinfo/python-list
quot;:
- filters perform operations on the request/response such as
gzip-compression or string encoding
- modules are web applications (like a blog or a web forum) than can
be easily "mounted" anywhere you want in your website
CherryPy-2 is already used in production by several sites and is
supported by an active community.
Remi.
http://www.cherrypy.org
--
http://mail.python.org/mailman/listinfo/python-list
Have a look a the new CherryPy (http://www.cherrypy.org).
It allows developers to build web applications in much the same way
they would build any other object-oriented Python program.
This might corespond to what you're looking for.
Remi.
--
http://mail.python.org/mailman/listinfo/python-list
://trac.cherrypy.org/cgi-bin/trac.cgi/wiki/BehindApache).
Since CherryPy provides a WSGI interface (although it's still
experimental), you can also run your CherryPy app with any
WSGI-compatible HTTP server (although I don't really see any advantage
to doing this).
Remi
--
http://mail.python.org/mailman/listinfo/python-list
#x27;, arg2='val2')"
- CherryPy also supports "RESTful" URLs like
http://domain/book/science/9
- requests are mapped to an object tree that is "mounted" on
cherrypy.root
(for instance: "cherrypy.root.user", "cherrypy.root.user.remi", ...)
- metho
, ...)
This is where http://www.cherrypy.org is hosted for instance.
Regards,
Remi.
--
http://mail.python.org/mailman/listinfo/python-list
, ...)
This is where http://www.cherrypy.org is hosted for instance.
Regards,
Remi.
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
I have got a list like : mylist = ['item 1', 'item 2','item n'] and
I would like to store the string 'item1' in a variable called s_1,
'item2' in s_2,...,'item i' in 's_i',... The lenght of mylist is finite ;-)
Any ideas ?
Thanks a lot.
Rémi.
--
http://mail.python.org/mailman/listinfo/
Patrick Useldinger a écrit :
remi wrote:
Hello,
I have got a list like : mylist = ['item 1', 'item 2','item n']
and I would like to store the string 'item1' in a variable called s_1,
'item2' in s_2,...,'item i' in 's_i',
Fredrik Lundh a écrit :
"remi" <[EMAIL PROTECTED]> wrote:
I have got a list like : mylist = ['item 1', 'item 2','item n'] and I would like to store the
string 'item1' in a variable called s_1, 'item2' in s_2,...,'item
Fredrik Lundh a écrit :
"remi" <[EMAIL PROTECTED]> wrote:
I want to store each item of mylist in a variable (and after "xmlize" it little by little).
why not just process the items in the list?
That's right.
for item in mylist:
print tex2xml(it
Fredrik Lundh a écrit :
variable['s_i']=mylist.pop()
variable['s_' + str(i)]=mylist.pop()
but that while and pop stuff is pretty weird;
Why ? Because it destroys the list ?
maybe you should read the
sections on lists, for loops, and string formatting in the Python tutorial?
here's a shorter
ta-driven it would be a *lot* more ...).
If it gets accepted, there will be a talk about this system at
EuroPython ...
Remi.
--
http://mail.python.org/mailman/listinfo/python-list
installer already supports all major tools, including
Rails, WordPress, Django, TurboGears, Plone, Trac and Subversion, but
also lightweight tools such as static HTML, CGI or PHP.
The demo is available at: http://blog.webfaction.com/control-panel-demo
Remi.
http://www.webfaction.com - Hosting for
n-2.5-compatible application servers
will be able to use all the new features of Python-2.5 for their
website.
Remi
http://www.webfaction.com - Hosting for an agile web
--
http://mail.python.org/mailman/listinfo/python-list
hon-Hosting.com) support all the
> > major Python web frameworks (Django, TurboGears, CherryPy,
> > mod_python, Pylons, web.py, ...)
> >
> > People using Python CGI or Python-2.5-compatible application servers
> > will be able to use all the new features of Python-2.5 for
wling under the load caused by these spammers).
If your site got disabled by mistake just e-mail us and we'll re-enable
it within minutes ...
Remi.
--
http://mail.python.org/mailman/listinfo/python-list
Py process
- Lots of bug fixes and improvements (including a more stable session
handling)
- Switch to lowercase API (instead of camelCase). (old API is still
supported but deprecated)
Remi.
--
http://mail.python.org/mailman/listinfo/python-list
esign of CherryPy-2 allows to easily write/use pluggable "filters"
or "modules":
- filters perform operations on the request/response such as
gzip-compression or string encoding
- modules are web applications (like a blog or a web forum) than can
be easily "mounted" anywhere
le from the
CherryPy website:
http://www.cherrypy.org
Remi.
--
http://mail.python.org/mailman/listinfo/python-list
yield ""
# cherrypy.root = HelloWorld()
# cherrypy.server.start()
The project has been growing strongly lately:
cherrypy.org averaged 3000 visitors/day in March,
up from 2000 visitors/day in January and February;
and the cherrypy-users list just passed 700 users.
Details and downloads ar
yield ""
> # cherrypy.root = HelloWorld()
> # cherrypy.server.start()
>
> The project has been growing strongly lately:
> cherrypy.org averaged 3000 visitors/day in March,
> up from 2000 visitors/day in January and February;
> and the cherrypy-users list just passed 700 users.
>
>
> Details and downloads are available from:
>
> http://www.cherrypy.org
>
>
> Remi.
--
http://mail.python.org/mailman/listinfo/python-list
errypy-users list just passed 700 users.
Details and downloads are available from:
http://www.cherrypy.org
Remi.
--
http://mail.python.org/mailman/listinfo/python-list
errypy-users list just passed 700 users.
Details and downloads are available from:
http://www.cherrypy.org
Remi.
--
http://mail.python.org/mailman/listinfo/python-list
through a web interface
- Web usage statistics of your Trac site
- Nightly backups of your data to external servers
If you want to know more about this offer and find out how to sign up,
check out the following page: http://www.python-hosting.com/freetrac
Remi.
--
http://mail.python.org
; used to it.
Grandfathers and eggs. Now, excuse me but I have a group of savage AI
written in bad style Python to tame.
--
==
Remi Villatel
[EMAIL PROTECTED]
==
--
http://mail.python.org/mailman/listinfo/python-list
f you kill the listener, the writer reports a broken pipe when it tries to
flush().
The writer can close and open the pipe to its liking, the listener doesn't care.
The only problem is that the writer freezes when it opens the pipe until
there is a listener at the other end.
A
cpg.response.headerMap['Content-Type'] = 'image/gif'
# return data
Remi.
--
http://mail.python.org/mailman/listinfo/python-list
others (in fact, pretty
much everything you want that runs on Python).
Remi
PS: Python-Hosting.com will be 2 years old in a few weeks :-)
--
http://mail.python.org/mailman/listinfo/python-list
others (in fact, pretty
much everything you want that runs on Python).
Remi
PS: Python-Hosting.com will be 2 years old in a few weeks :-)
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
http://www.python.org/psf/donations.html
in order to
> be able to submit)
Do your best! I'd really like to see your code. Right now, 179 chars
doesn't seem enough for me to write a "Hello world". ;-)
--
==
Remi Villatel
[EMAIL PROTECTED]
==
--
http://mail.python.org/mailman/listinfo/python-list
rbt wrote:
> Does positioning matter? For example, say I give it '123' is it ok to
> output this:
>
> 1
> 2
> 3
>
> Or does it have to be 123
Download the test suite and you'll see that only 123 on one line passes
the test. Sorry...
--
==
27;ll have to see what can be done...
39 bytes... 53 bytes... It gives me the impression to follow a jet plane
with a bike with my 179 bytes!
There isn't a single superfluous byte. My code is so compressed that the
syntactic colorizer can't cope any more.
I definitively need a
ure at 99% that
I'm really stuck...
--
==
Remi Villatel
[EMAIL PROTECTED]
==
--
http://mail.python.org/mailman/listinfo/python-list
pythonic goal if you
count in bytes. The same contest with the length of the code measured in
"pythonic units" would be better. When I say "pythonic unit", I mean
to count 1 unit for each variable, literal, operator or key-word. That
would be more pythonic.
...b
ser(me).
This is definitively not the right newsgroup for HTML issues. Go to:
http://validator.w3.org/
And I'm already too nice...
--
==
Remi Villatel
[EMAIL PROTECTED]
==
--
http://mail.python.org/mailman/listinfo/python-list
to even start writing things in C++.
No need to compile or debug in Python. When something goes wrong:
CTRL+C, correct and restart.
Python is fun because it's easy to write, to understand and to use.
--
==
Remi Villatel
[EMAIL PROTECTED]
==
--
http://mail.python.org/mailman/listinfo/python-list
uot;while".
So far, all I got is:
while True:
some(code)
if final_condition is True:
break
#
#
What I don't find so "nice" is to have to build an infinite loop only to
break it.
Is there a better recipe?
--
},
{ 'title':
'Folder 1.1',
'children' : [ .. ],
},
] },
]
and something like:
def displayListItem(i):
print '%s' % i['title']
if i['children']:
print ''
for c in i['children']:
displayListItem(c)
print ''
print
you might also use recursion with your existing list, by 'pop'ing the
first item and passing the rest of the list.
Remi
--
http://mail.python.org/mailman/listinfo/python-list
39 matches
Mail list logo