Also related to the release, I noticed I forgot to mention some related changes that occurred.

The following packages have all been updated and Pylons 0.9.2 now uses the latest versions of:
Paste, PasteScript, Routes, WebHelpers.

For those curious about using sub-domains, in your routing.py just add:
map.sub_domains = True

If you want to set a sub-domain to be ignored (www is commonly equivalent to the main site):
map.sub_domains_ignore = ['www']

Once you have sub-domains on, any action can always ask for sub_domain in its definition. You can also specify sub_domain as a url_for argument and it'll ensure that the link goes to the sub-domain you ask for.

Now for the big list of all the updates!

Paste Updates (the response and WSGIResponse definitely help us!):

* Fixed ``paste.response.HeaderDict`` ``get`` and ``setdefault``
methods to be case insensitive

* Fixed ``wsgiwrappers.WSGIResponse.delete_cookie``. It also now takes
optional path and domain arguments

* ``wsgiwrappers.WSGIResponse`` now handles generator/iterator content
more cleanly, and properly encodes unicode content according to its
specified charset

* Fixed ``wsgiwrappers.WSGIResponse`` mishandling multiple headers of
the same name

* Added a Paste Deploy entry point for ``paste.auth.cookie``

* Moved Paste Deploy dependencies out of top-level modules and into
Paste-Deploy-specific entry point functions. This should make Paste
more-or-less Paste Deploy independent. ``paste.urlparser`` and
``paste.exceptions.errormiddleware`` still have some leftover bits.

* Added another redirector type to ``paste.recursive``,
``environ['paste.recursive.include_app_iter']`` which gives access
to the original app_iter (useful for tranfsering unserialized data
in internal WSGI requests, as in `WSGIRemote
<http://svn.pythonpaste.org/Paste/WSGIRemote/trunk>`_

* Bug with ``wsgilib.catch_errors`` and app_iters with no ``close()``
method.

* Long words in tracebacks weren't being wrapped correctly at all.
Also, large data would cause the wrapping routine to give a
recursion error. Now large data is truncated (at 1000 characters),
and recursion won't be a problem. Also, wrapping shouldn't lose
characters.

* Better exception if you try to put a non-str into environ when using
``paste.auth.cookie``

* ``paste.exceptions.collector`` produces an
``exc_data.exception_type`` that is a class, not a string. This
helps it get formatted better in Python 2.5.

* All the tests pass on Python 2.5!

* Added ``paste.proxy.TransparentProxy``, which just sends the request
described in the WSGI environ on without any modification. More
useful for WSGI clients than servers, it effectively allows any
WSGI-based request mechanism to act like an httplib-based request
mechanism.

* Added a ``cache_max_age`` argument to
``paste.urlparser.StaticURLParser``, which allows you to encourage
the caching of static files. Patch from Brad Clements.

* Added ``suppress_http_headers`` to ``paste.proxy.Proxy``, which will
filter out HTTP headers from the request before passing it on.
Patch from Brad Clements.

PasteScript updates (help to the Windows folks here!):

* New projects will now ignore
``Package.egg-info/dependency_links.txt``, just like all the other
derivative files in the ``egg-info`` directory

* ``paster serve --reload`` was broken on Windows when the Python
executable was in a directory with spaces in it. This is probably a
bug in the ``subprocess`` module.

Routes updates (subdomain support):

* Added sub_domains option to mapper, along with sub_domains_ignore list for
subdomains that are considered equivilant to the main domain. When sub_domains
is active, url_for will now take a sub_domain option that can alter the host
the route will go to.
* Added ability for filter functions to provide a _host, _protocol, _anchor arg
which is then used to create the URL with the appropriate host/protocol/anchor
destination.
* Patch applied from Ticket #28. Resolves issue with Mapper's controller_scan
function requiring a valid directory argument. Submitted by Zoran Isailovski.

WebHelpers updates (note the addition of a textile and markdown formatter helper!):

* Adding counter func to text helpers, patch from Jamie Wilkinson.
* Sync'd Rails Text helper to 4994.
* Sync'd Rails Asset tag helper to 4999.
* Sync'd Rails Form tag helper to 5045, also doesn't apply to our version.
* Sync'd Rails Javascript func to 5039, doesn't apply to us.
* Updated Scriptaculous to 1.6.3.
* Updated Prototype to 1.5.0_rc1.
* Updated radio_button so that id's are unique. Brings up to date with Rails
changeset #4925, also fixes #103.
* More precise distance_of_time_in_words (Follows bottom half of #4989 Rails
changeset)
* button_to accepts method keyword so you can PUT and DELETE with it.
(Follows #4914 Rails changeset)
* Fixed auto_link to parse more valid url formats (Thanks Jamie Wilkinson).
* Sync'd text helper from latest Rails version.
* Fixed form tag's method matching to be case insensitive.
* Adding simplejson req, adding use of json'ification. Updated scriptaculous
helpers to split out JS generation for use in JS Generation port.
* Finished sync'ing Rails ports (urls, tags) in WebHelpers. Closes #69.
url and prototype tests updated, url helpers updated to handle method
argument.
* Sync'd scriptaculous helper.
* Sync'd javascript, prototype helpers and prototype.js to latest Rails
modifications. Added more prototype tests.
* Sync'd form_options, form_tag helpers. form_tag's form function can now
accept other HTTP methods, and will include a hidden field for them if
its not 'get' or 'post'.
* Sync'd number helper, added number unit tests.
* Added markdown.py (python-markdown) for new markdown support in text helper.
* Added textile.py (PyTextile) for new textilize support in text helper.
* Brought asset/date/text helpers up to date with revision info.


Cheers,
Ben
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss -~----------~----~----~----~------~----~------~--~---

Reply via email to