Apache Mod-Python - drafting an announcement

This is Interesting: Free IT Magazines  
Home > Archive > Apache Mod-Python > September 2005 > drafting an announcement





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author drafting an announcement
Gregory (Grisha) Trubetskoy

2005-09-18, 5:46 pm


I've updated the XML for the mod_python download page and regened the HTML
and it looks like the opration was a success, so 3.2.2b is officially
downloadable.

This was the original announcement that was sent out for 3.1.2 beta. I'm
kind of drawing a blank on 'feature highlight' bullet points - if you have
any ideas send them in, and I'll assemble it into a nicer text.

Grisha


---------- Forwarded message ----------
Date: Mon, 27 Oct 2003 10:17:52 -0500
From: "Gregory (Grisha) Trubetskoy" <grisha@apache.org>
To: announce@httpd.apache.org, mod_python@modpython.org
Cc: python-dev@httpd.apache.org
Newsgroups: comp.lang.python
Subject: ANNOUNCE: Mod_python 3.1.2 Beta


The Apache Software Foundation and The Apache HTTP Server Project are
pleased to announce the 3.1.2 Beta release mod_python.

Some feature highlights:

* Server-side sessions with memory or dbm-based storage and session
locking support.

* PSP - a fast flex-based scanner which allows embedding Python code
within HTML.

* Native cookie support, including support for automatic cryptographic
cookie signing and marshalling.

* Compatibility with Python 2.3, as well as many other enhancements.

Beta releases are NOT considered stable and may contain bugs.

This release is intended to solicit widespread testing of the code. We
strongly recommend that you try out your existing applications and
experiment with new features in a non-production environment using this
version and report any problems you may encounter so that they can be
addressed before the final release.

Preferred method of reporting problems is the mod_python user list
mod_python@modpython.org.

Mod_python 3.1.2b is available for download from:

http://httpd.apache.org/modules/python-download.cgi

For more information about mod_python visit
http://www.modpython.org/

Regards,

Grisha Trubetskoy


Jim Gallacher

2005-09-18, 5:46 pm

Gregory (Grisha) Trubetskoy wrote:
>
> I've updated the XML for the mod_python download page and regened the
> HTML and it looks like the opration was a success, so 3.2.2b is
> officially downloadable.
>
> This was the original announcement that was sent out for 3.1.2 beta.
> I'm kind of drawing a blank on 'feature highlight' bullet points - if
> you have any ideas send them in, and I'll assemble it into a nicer text.
>
> Grisha


The text from doc-html/node97.html (Changes from 3.1.4) would be a good
starting point.

Regards,
Jim

New Features

* New apache.register_cleanup() method.
* New file-based session manager class.
* Session cookie name can be specified.
* The maximum number of mutexes mod_python uses for session locking
can now be specifed at compile time using configure --with-max-locks.
* New a version attribute in mod_python module.
* New test handler testhandler.py has been added.

Improvements

* Autoreload of a module using apache.import_module() now works if
modification time for the module is different from the file. Previously,
the module was only reloaded if the the modification time of the file
was more recent. This allows for a more graceful reload if a file with
an older modification time needs to be restored from backup.
* Iterable return values are now correctly published
* Fixed the traversal security issue
* mod_python.c now logs reason for a 500 error
* Calls to PyErr_Print in mod_python.c are now followed by fflush()
* Using an empty value with PythonOption will unset a PythonOption key.
* Improvments to FieldStorage allow uploading of large files.
Uploaded files are now streamed to disk, not to memory.
* Path to flex is now discovered at configuration time or can be
specifed using configure --with-flex=/path/to/flex.

Bug Fixes

* Fixed memory leak which resulted from circular references
starting from the request object.
* Fixed memory leak resulting from multiple PythonOption directives.
* Cookie attributes with attribute names prefixed with $ are now
ignored. See Section 4.7 for more information.
* Bug in setting up of config_dir from Handler directives fixed.
* mod_python.publisher will now support modules with the same name
but in different directories
* Fixed continual reloading of modules problem
* Fixed big marshalled cookies error.
* Fixed mod_python.publisher extension handling
* mod_python.publisher default index file traversal
* mod_python.publisher loading wrong module and giving no warning/error
* apply_fs_data() now works with "new style" objects
* File descriptor fd closed after ap_send_fd() in req_sendfile()
* Bug in mem_cleanup in MemorySession fixed.
* Fixed bug in _apache._global_lock() which could cause a segfault
if the lock index parameter is greater number of mutexes created at
mod_python startup.
* Fixed bug where local_ip and local_host in connection object were
returning remote_ip and remote_host instead
* Fixed install_dso Makefile rule so it only installs the dso, not
the Python files
* Potential deadlock in psp cache handling fixed
* Fixed bug where sessions are used outside <Directory> directive.


Nicolas Lehuen

2005-09-18, 5:46 pm

Hi Grisha,
You could nearly copy/paste this :

http://issues.apache.org/jira/secur...0&Create=Create
There is also an HTML version.
Regards,
Nicolas

2005/9/18, Gregory (Grisha) Trubetskoy <grisha@apache.org>:
>
>
> I've updated the XML for the mod_python download page and regened the HTML
> and it looks like the opration was a success, so 3.2.2b is officially
> downloadable.
>
> This was the original announcement that was sent out for 3.1.2 beta. I'm
> kind of drawing a blank on 'feature highlight' bullet points - if you have
> any ideas send them in, and I'll assemble it into a nicer text.
>
> Grisha
>
>
> ---------- Forwarded message ----------
> Date: Mon, 27 Oct 2003 10:17:52 -0500
> From: "Gregory (Grisha) Trubetskoy" <grisha@apache.org>
> To: announce@httpd.apache.org, mod_python@modpython.org
> Cc: python-dev@httpd.apache.org
> Newsgroups: comp.lang.python
> Subject: ANNOUNCE: Mod_python 3.1.2 Beta
>
>
> The Apache Software Foundation and The Apache HTTP Server Project are
> pleased to announce the 3.1.2 Beta release mod_python.
>
> Some feature highlights:
>
> * Server-side sessions with memory or dbm-based storage and session
> locking support.
>
> * PSP - a fast flex-based scanner which allows embedding Python code
> within HTML.
>
> * Native cookie support, including support for automatic cryptographic
> cookie signing and marshalling.
>
> * Compatibility with Python 2.3, as well as many other enhancements.
>
> Beta releases are NOT considered stable and may contain bugs.
>
> This release is intended to solicit widespread testing of the code. We
> strongly recommend that you try out your existing applications and
> experiment with new features in a non-production environment using this
> version and report any problems you may encounter so that they can be
> addressed before the final release.
>
> Preferred method of reporting problems is the mod_python user list
> mod_python@modpython.org.
>
> Mod_python 3.1.2b is available for download from:
>
> http://httpd.apache.org/modules/python-download.cgi
>
> For more information about mod_python visit
> http://www.modpython.org/
>
> Regards,
>
> Grisha Trubetskoy
>
>


Jim Gallacher

2005-09-18, 8:45 pm

Nicolas Lehuen wrote:
> Hi Grisha,
>
> You could nearly copy/paste this :
>
> http://issues.apache.org/jira/secur...0&Create=Create
> <http://issues.apache.org/jira/secur...0&Create=Create>


I used this as the basis for the list I created in the Changes section
of the html docs. The JIRA list wasn't all that great as far as doing a
copy and paste. I found I had to edit it heavily so it would make sense
in the context of the release. It's a good guide but not all that great
for direct use.

As an example:
"""
** Improvement
[MODPYTHON-7] - Autoreload works if mtime is newer, but not older.
"""

This describes the problem, not the improvment. In fact, it's almost the
exact opposite of the improvement.

Perhaps there is a way we could use the comment field when an issue is
resolved such that the text would be suitable for direct inclusion in
the documentation?

Jim

Nicolas Lehuen

2005-09-18, 8:45 pm

We could simply change the issue's summary so that it reads correctly in th
release notes.

Regards,
Nicolas

2005/9/19, Jim Gallacher <jg.lists@sympatico.ca>:
>
> Nicolas Lehuen wrote:
> http://issues.apache.org/jira/secur...0&Create=Create
> http://issues.apache.org/jira/secur...0&Create=Create
>
> I used this as the basis for the list I created in the Changes section
> of the html docs. The JIRA list wasn't all that great as far as doing a
> copy and paste. I found I had to edit it heavily so it would make sense
> in the context of the release. It's a good guide but not all that great
> for direct use.
>
> As an example:
> """
> ** Improvement
> [MODPYTHON-7] - Autoreload works if mtime is newer, but not older.
> """
>
> This describes the problem, not the improvment. In fact, it's almost the
> exact opposite of the improvement.
>
> Perhaps there is a way we could use the comment field when an issue is
> resolved such that the text would be suitable for direct inclusion in
> the documentation?
>
> Jim
>


Gregory (Grisha) Trubetskoy

2005-09-19, 5:54 pm


On Sun, 18 Sep 2005, Jim Gallacher wrote:

> New Features
>
> * New apache.register_cleanup() method.


Appears to be undocumented.

Grisha

Gregory (Grisha) Trubetskoy

2005-09-19, 5:54 pm


The announcement does not need to go into such detail, so how about :

**

The new version of mod_python features several new functions and
attributes providing better access to apache internals, file-based
sessions and other session improvements, as well as lots of bug fixes and
various performance and security improvements.

**

Grisha


On Sun, 18 Sep 2005, Jim Gallacher wrote:

> Gregory (Grisha) Trubetskoy wrote:
>
> The text from doc-html/node97.html (Changes from 3.1.4) would be a good
> starting point.
>
> Regards,
> Jim
>
> New Features


[snip]

Jorey Bump

2005-09-19, 5:54 pm

Gregory (Grisha) Trubetskoy wrote:

> The announcement does not need to go into such detail, so how about :


Personally, I found the detailed announcement very useful, because it
flags exactly what I should check in my own applications before
switching over. My 2 cents.

Jim Gallacher

2005-09-19, 5:54 pm

Gregory (Grisha) Trubetskoy wrote:
>
> On Sun, 18 Sep 2005, Jim Gallacher wrote:
>
>
>
> Appears to be undocumented.


This is true. How about this (from MODPYTHON-37):

"""
register_cleanup(callable[, data])

Registers a cleanup. Argument callable can be any callable object,
the optional argument data can be any object (default is None). At
Apache child process termination, callable will be called with one
argument, data.

If errors are encountered during cleanup processing, they should be
in error log.
"""

I wonder if there should be a warning about using req as the data
object? If req is used a reference to it would be held until the child
terminates, which could have some rather nasty side effects. Any thoughts?

Jim


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com