Re: [Web-SIG] Generator-Based Applications: Marrow HTTPd Example

2011-01-10 Thread Massimo Di Pierro
I like this a lot! On Jan 10, 2011, at 6:25 AM, Alice Bevan–McGregor wrote: > Howdy! > > Here's a rewritten (and incomplete, but GET and HEAD requests work fine) > marrow.server.http branch [1] that illustrates a simple application [2] and > protocol implementation [3]. Most notably, examine

Re: [Web-SIG] PEP 444 (aka Web3)

2010-09-16 Thread Massimo Di Pierro
sorry. Apologies On Sep 16, 2010, at 3:21 PM, Guido van Rossum wrote: Um, talk about a whopper of a topic change. None of that is on the table. Maybe for Python 4. And certainly not in web-sig. On Thu, Sep 16, 2010 at 12:32 PM, Massimo Di Pierro wrote: Not sure this discussion belongs here

Re: [Web-SIG] PEP 444 (aka Web3)

2010-09-16 Thread Massimo Di Pierro
n Sep 16, 2010, at 2:55 PM, Massimo Di Pierro wrote: My experience in various communities suggests that naming the new totally-bw-incompat thing the same as the old thing weakens both the new thing and the old thing, I share the same experience. Interesting. Do you feel that Python 3.x s

Re: [Web-SIG] PEP 444 (aka Web3)

2010-09-16 Thread Massimo Di Pierro
My experience in various communities suggests that naming the new totally-bw-incompat thing the same as the old thing weakens both the new thing and the old thing, I share the same experience. ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http:/

Re: [Web-SIG] PEP 444 (aka Web3)

2010-09-15 Thread Massimo Di Pierro
I fully support it! Massimo On Sep 15, 2010, at 6:03 PM, Chris McDonough wrote: A PEP was submitted and accepted today for a WSGI successor protocol named Web3: http://python.org/dev/peps/pep-0444/ I'd encourage other folks to suggest improvements to that spec or to submit a competing spec,

Re: [Web-SIG] Web Framework

2009-10-05 Thread Massimo Di Pierro
Hey, this is more complex than web2py: @bobo.query('/') def hello(): return "Hello world!" In web2py you do not need the first line. ;-) Massimo On Oct 5, 2009, at 11:35 AM, Jim Fulton wrote: On Sun, May 31, 2009 at 12:30 PM, Omar Munk wrote: Hello I'm Pynthon and I'm 14 years old. I

Re: [Web-SIG] Web Framework

2009-10-05 Thread Massimo Di Pierro
Have you looked into T3? http://www.vimeo.com/2462041 http://web2py.appspot.com/t3/default/wiki/main If you know web2py it is based on it and uses the same syntax. This is an old app, to be considered experimental and we working on a new/improved version for it. https://launchpad.net/t4 Sti

Re: [Web-SIG] Getting back to WSGI grass roots.

2009-09-23 Thread Massimo Di Pierro
Hi Graham, Me being an outsider who contributed nothing to the process, I hope you'll reconsider. I really appreciate your work and I trusted the process more with you in it. Massimo On Sep 23, 2009, at 9:11 PM, P.J. Eby wrote: At 11:47 AM 9/24/2009 +1000, Graham Dumpleton wrote: After a

Re: [Web-SIG] Proposal to remove SCRIPT_NAME/PATH_INFO

2009-09-22 Thread Massimo Di Pierro
Hello Ian, I really like your proposal. Massimo On Sep 22, 2009, at 9:22 PM, Ian Bicking wrote: OK, I mentioned this in the last thread, but... I can't keep up with all this discussion, and I bet you can't either. So, here's a rough proposal for WSGI and unicode: I propose we switch prim

Re: [Web-SIG] Request for Comments on upcoming WSGI Changes

2009-09-22 Thread Massimo Di Pierro
+1 On Sep 22, 2009, at 10:45 AM, Armin Ronacher wrote: Hi, And Clover schrieb: This is absolutely the opposite of what I want as an application author. I want to hand out my WSGI application that uses UTF-8 and know that wherever it is deployed the non-ASCII characters will go through wit

Re: [Web-SIG] Request for Comments on upcoming WSGI Changes

2009-09-22 Thread Massimo Di Pierro
Thank you Armin this makes things clear to me ( a newbie hre). On Sep 22, 2009, at 3:29 AM, Armin Ronacher wrote: - my initial plan was going bytes everywhere. Turns out, on Python 3 this is nearly impossible to do because the majority of the standard library went an unicode path, even where

Re: [Web-SIG] Request for Comments on upcoming WSGI Changes

2009-09-21 Thread Massimo Di Pierro
Thanks Graham. I had missed it. Massimo On Sep 21, 2009, at 9:26 PM, Graham Dumpleton wrote: 2009/9/22 Mark Nottingham : Reference? See: http://blog.dscpl.com.au/2009/09/roadmap-for-python-wsgi-specification.html Anyone else jumping in on this conversation with their own opinions and who

Re: [Web-SIG] Request for Comments on upcoming WSGI Changes

2009-09-21 Thread Massimo Di Pierro
+1 On Sep 21, 2009, at 8:28 PM, Mark Nottingham wrote: +1. There is no one answer for these issues (e.g., URI->IRI conversion can lose information), so low-level infrastructure like WSGI shouldn't be making choices for people. On 22/09/2009, at 5:31 AM, P.J. Eby wrote: At 11:23 AM 9/21/2009

Re: [Web-SIG] Request for Comments on upcoming WSGI Changes

2009-09-20 Thread Massimo Di Pierro
+1 On Sep 20, 2009, at 11:25 PM, Chris McDonough wrote: I'll try to digest some of this, currently I'm pretty clueless. Personally, I find it a bit hard to get excited about Python 3 as a web application deployment platform. This is of course a personal judgment (I don't mean to slight Py

Re: [Web-SIG] Unicode in Python 3

2009-09-19 Thread Massimo Di Pierro
I agree I was forced to write two files. The problems where 1) b'' vs '' (could be solved using eval('b""') if python3 else eval("") but ugly) 2) try:...:except Exeption,e: vs try:...except Exception as e. (no way around it) 3) it would have required a lot of if s

Re: [Web-SIG] python3 wsgi. Re: WSGI 1 Changes [ianb's and my changes]

2009-09-19 Thread Massimo Di Pierro
the doc string) and I hope it can be useful. Massimo On Sep 19, 2009, at 3:55 AM, Armin Ronacher wrote: Hi, Massimo Di Pierro schrieb: I liked your idea very much Rene' , so I made this Can you please stop that before you do any more damage? Your code is not even anywhere close to

Re: [Web-SIG] python3 wsgi. Re: WSGI 1 Changes [ianb's and my changes]

2009-09-19 Thread Massimo Di Pierro
I liked your idea very much Rene' , so I made this: http://web2py.com/examples/static/sneaky.py and a Python 3.0 version: http://web2py.com/examples/static/sneaky3.py They both may need some testing more testing but I tried the former with web2py and it works well, including streamin

[Web-SIG] web2py on appengine

2008-04-23 Thread Massimo Di Pierro
I thought you may be interested in these two video tutorials 1) how to use web2py on the Google appengine http://www.vimeo.com/932708 2) a minimalist version using only the shell http://www.vimeo.com/933216 (requires version in svn trunk, http://code.google.com/p/web2py) ___

[Web-SIG] google appengine

2008-04-08 Thread Massimo Di Pierro
You probably read that google has released appengine: http://www.youtube.com/watch?v=bfgO-LXGpTM but they have disabled video responses. So here is mine anyway. http://www.vimeo.com/875433 Massimo ___ Web-SIG mailing list Web-SIG@python.org

Re: [Web-SIG] Time a for JSON parser in the standard library?

2008-03-10 Thread Massimo Di Pierro
It would also be nice to have a common interface to all modules that do serialization. For example pickle, cPickle, marshall has dumps, so json should also have dumps. Massimo On Mar 10, 2008, at 9:51 PM, Mark Ramm wrote: >> Well, so fix this. How hard can it be? > > A google search for "js

Re: [Web-SIG] Time a for JSON parser in the standard library?

2008-03-10 Thread Massimo Di Pierro
I agree. simplejson is used by web2py as well. Massimo On Mar 10, 2008, at 8:37 AM, Mark Ramm wrote: >> Is it time there was a JSON codec included in the python standard >> library? > > I would definitely support the incusion of a JSON library in the > standard lib. And, I think that it sho

[Web-SIG] new in trunk. please read

2008-02-10 Thread Massimo Di Pierro
There is a new version in code.google.com/p/web2py trunk. For Niccolo: I think I fixed the problem with uploading large files. Could you please run some tests to confirm memory usage. For voltron: The pidfile is now deleted on exit. Mind that in your pyamf hander you have to replace request.body

Re: [Web-SIG] wsgiref for python 2.4?

2008-02-07 Thread Massimo Di Pierro
Could somebody discuss pros and cons of cherrypy wsgiserver vs paste httserver? Massimo On Feb 7, 2008, at 10:53 AM, Adam Atlas wrote: > http://pypi.python.org/pypi/wsgiref > > It wouldn't hurt to look at CherryPy's WSGIServer anyway. I think it's > generally a lot more efficient/scalable than

[Web-SIG] web2py 1.20 is out

2008-02-04 Thread Massimo Di Pierro
web2py 1.20 is out. www.web2py.com New features include the inclusion of a web based testing framework - a screenshot is here: http://web2py.googlegroups.com/web/test.tiff pyamf howto, rest support, handler for lighttpd/fcgi, WIKI helper, etc. AND it is always backward compati

Re: [Web-SIG] Removal of Cookie in Python 3.0 OK?

2008-02-03 Thread Massimo Di Pierro
web2py uses it cookie too but probably it would not take much to port it to cookielib. It would be great if you could provide an example of usage of cookielib.Cookie vs cookie.SimpleCookie. In particular, I cannot find any example of how to serialize a cookielib.Cookie into the correspondin

[Web-SIG] cwd and mod_wsgi

2007-12-16 Thread Massimo Di Pierro
Does anybody know how to change the current working directory in apache with mod_wsgi? Thanks Massimo ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/a

[Web-SIG] Gluon 1.12

2007-11-14 Thread Massimo Di Pierro
Hello everybody. Just wanted to let you know that Gluon 1.12 (GPL2) is out with lots of new stuff: better database administrative interface, JSON, CSV, RTF, RSS, etc. (find examples in the web page) http://mdp.cti.depaul.edu We also have a google group: http://groups.google.com/group/gl

[Web-SIG] wsgi?

2007-10-29 Thread Massimo Di Pierro
I am trying to use Gluon with Apache and mod_wsgi. This is how Gluon starts now using Paste httpserver (serve) def main(ip='127.0.0.1',port=8000): serve(wsgibase,server_version="Something", host=ip, port=str(port)) I am not looking for explanation, I can figure it out myself, it is the ti

Re: [Web-SIG] Gluon again

2007-10-23 Thread Massimo Di Pierro
ce, occasionally networking stuff and security. You can say I came from a C++ background. My most important work is fermiqcd a C++ library of parallel lattice quantum chromodynamics. On Oct 22, 2007, at 11:57 PM, Joshua Simpson wrote: On 10/22/07, Massimo Di Pierro <[EMAIL PROTECTED]

[Web-SIG] Gluon again

2007-10-22 Thread Massimo Di Pierro
I posted a Gluon tutorial here http://mdp.cti.depaul.edu/examples/static/cookbook.pdf it shows step by step how to build a web app to store recipes and group them by category. It is a first draft so there are may be some english some typos. Sorry. Massimo P.S. I'll never stress it enough

Re: [Web-SIG] Gluon 1.6

2007-10-17 Thread Massimo Di Pierro
it is under the GPL why don't you clearly mention that on the > web site front page. I can't see a reference to GPL or even a link to > a page describing licence used on the front page. Can't seem to see > anything in the FAQ either about the licence used. > > Graham &g

[Web-SIG] Gluon 1.6

2007-10-16 Thread Massimo Di Pierro
I have a new version of Gluon out (known bugs fixed) and a video http://www.youtube.com/watch?v=VBjja6N6IYk Thank you to those who expressed interest. I would like to stress that this is a open source project released under GPL2 and I could really use community input to make it better (for