Using the latest 0.9.7 beta
Read the Easy Install documentation, to decide whether to install Pylons as a root user so it can be used by everyone or whether to use a custom installation location.
If you have easy install run:
1 | $ easy_install -f http://pylonshq.com/download/0.9.7 -U Pylons
|
Otherwise download ez_setup.py and run:
1 | $ python ez_setup.py -f http://pylonshq.com/download/0.9.7 -U Pylons
|
Working Directly From the Source Code
Mercurial must be installed to retrieve the latest development source for Pylons. Mercurial packages are also available for Windows, MacOSX, and other OS's.
Check out the latest code:
1 | $ hg clone https://www.knowledgetap.com/hg/pylons-dev Pylons
|
To tell setuptools to use the version you are editing in the Pylons directory:
1 2 | $ cd Pylons $ python setup.py develop |
Now you can make changes to the files in the Pylons directory and the code will run exactly as if you had installed a version of the egg with the changes you have made.
Comments (4)
Nov 08, 2007
Mike Orr says:
Pylons development version (0.9.7) requires configuring three middlewares that e...Pylons development version (0.9.7) requires configuring three middlewares that earlier versions of Pylons handled automatically. To make your app compatible with both 0.9.6 and the development version, add the following to middleware.py below the "# CUSTOM MIDDLEWARE HERE" line:
Nov 29, 2007
Mike Orr says:
Pylons 0.9.7 will use request/response objects from WebOb instead of WSGIRequest...Pylons 0.9.7 will use request/response objects from WebOb instead of WSGIRequest/WSGIResponse. This brings a richer set of convenience attributes but also some API changes. If you're using {{
}} to build a page incrementally, you'll have to change it to {{
}}. Here's a general comparision of the two systems.
WebOb is only partially implemented in Pylons-dev as of this writing. Successful responses use WebOb.Response, while 404 errors (at least) use WSGIResponse. If you need the numeric status in a routine that could get either, do something like this:
{{
}}
Nov 29, 2007
Mike Orr says:
Darn Confluence syntax. Why does it have to be different than other wikis? Pylo...Darn Confluence syntax. Why does it have to be different than other wikis?
Pylons 0.9.7 will use request/response objects from WebOb instead of WSGIRequest/WSGIResponse. This brings a richer set of convenience attributes but also some API changes. If you're using ``response.write("ABC")`` to build a page incrementally, you'll have to change it to ``response.body_file.write("ABC")``. Here's a general comparision of the two systems.
WebOb is only partially implemented in Pylons-dev as of this writing. Successful responses use WebOb.Response, while 404 errors (at least) use WSGIResponse. If you need the numeric status in a routine that could get either, do something like this:
try:
status = response.status_int # webOb response
except AttributeError:
status = response.status_code # WSGIResponse
Dec 10, 2007
Mike Orr says:
See What's new in Pylons 0.9.7? for changes already in the development versi...See What's new in Pylons 0.9.7? for changes already in the development version that affect your application, and Pylons Roadmap to 1.0 for a list of future planned changes.