========================= What's New in Roundup 0.7 ========================= For those completely new to Roundup, you might want to look over the very terse features__ page. __ features.html .. contents:: Instant-Gratification script even more gratifying ================================================= The immensely popular ``python demo.py`` instant-gratification script has been extended to allow you to choose the backend to use with the demo. To select the "sqlite" backend (assuming it is available) you use:: python demo.py sqlite nuke This will nuke any existing demo and reinitialise it with the sqlite backend. Remember folks, if you want to restart the demo at a later point, you just need to type:: python demo.py without the "sqlite nuke" part, or you'll clear out the demo again. The backend names are: anydbm bsddb bsddb3 sqlite metakit mysql postgresql You will need support modules installed for all except the first two. If you're not sure whether you have support, run:: python run_tests.py and if you see a line saying "Including XXXX tests" where XXXX is the backend you wish to try, then you're on your way. The mysql and postgresql require their test environments to be set up. Read their respective documents in the "doc" directory to do that. Web Interface ============= Saving and sharing of user queries ---------------------------------- Due to popular demand, the user query saving mechanisms have been overhauled. As before, you may save queries in the tracker by giving the query a name. Each user may only have one query with a given name - if a subsequent search is performed with the same query name supplied, then it will edit the existing query of the same name. Queries may be marked as "private". These queries are only visible to the user that created them. If they're not marked "private" then all other users may include the query in their list of "Your Queries". Marking it as private at a later date does not affect users already using the query, nor does deleting the query. If a user subsequently creates or edits a public query, a new personal version of that query is made, with the same editing rules as described above. You *are not required* to make these changes in your tracker. You only need to make them if you wish to use the new query editing features. It's highly recommended, as the effort is minimal. 1. You will need to edit your tracker's ``dbinit.py`` to change the way queries are stored. Change the lines:: query = Class(db, "query", klass=String(), name=String(), url=String()) query.setkey("name") to:: query = Class(db, "query", klass=String(), name=String(), url=String(), private_for=Link('user')) That is, add the "private_for" property, and remove the line that says ``query.setkey("name")``. 2. You will also need to copy the ``query.edit.html`` template page from the ``templates/classic/html/`` directory of the source to your tracker's ``html`` directory. 3. Once you've done that, edit the tracker's ``page.html`` template to change::
Your Queries
Your Queries (edit)
dld link
...
The ``download_url`` method looks up the file's "id" and "name" and
generates a correctly-quoted URL.
Additionally, users wishing to URL- or HTML- quote text in their templates
may use the new ``utils.url_quote(url)`` and ``utils.html_quote(html)``
methods.
CSV download of search results
------------------------------
A new CGI action, ``export_csv`` has been added which exports a given
index page query as a comma-separated-value file.
To use this new action, just add a link to your ``issue.index.html``
page::
Download as CSV
You may use this for other classes by adding it to their index page and
changing the ``'issue'`` part of the expression to the new class' name.
Other changes
-------------
- we serve up a favicon now
- the page titles have the tracker name at the end of the text instead
of the start
- added url_quote and html_quote methods to the utils object
- added isset method to HTMLProperty
- added search_checkboxes as an option for the search form
Email Interface
===============
Better handling of some email headers
-------------------------------------
We ignore messages with the header "Precedence: bulk".
If a Resent-From: header is present, it is used in preference to the From:
header when determining the author of the message. Useful for redirecting
error messages from automated systems.
Email character set
-------------------
The default character set for sending email is UTF-8 (ie. Unicode). If you
have users whose email clients can't handle UTF-8 (eg. Eudora) then you
will need to edit the new config.py variable ``EMAIL_CHARSET``.
Dispatcher configuration
------------------------
A new config option has been added that specifies the email address of
a "dispatcher" role. This email address acts as a central sentinel for
issues coming into the system. You can configure it so that all e-mail
error messages get bounced to them, them and the user in question, or
just the user (default).
To toggle these switches, add the "DISPATCHER_EMAIL" and
"ERROR_MESSAGES_TO" configuration values to your tracker's ``config.py``.
See the `customisation documentation`_ for how to use them.
More flexible message generation
--------------------------------
The code for generating email messages in Roundup has been refactored. A
new module, ``roundup.mailer`` contains most of the nuts-n-bolts required
to generate email messages from Roundup.
In addition, the ``IssueClass`` methods ``nosymessage()`` and
``send_message()`` have both been altered so that they don't require the
message id parameter. This means that change notes with no associated
change message may now be generated much more easily.
The roundupdb nosymessage() method also accepts a ``bcc`` argument which
specifies additional userids to send the message to that will not be
included in the To: header of the message.
Registration confirmation by email
----------------------------------
Users may now reply to their registration confirmation email, and the
roundup mail gateway will complete their registration.
``roundup-mailgw`` now supports IMAP
------------------------------------
To retrieve from an IMAP mailbox, use a *cron* entry similar to the
POP one::
0,10,20,30,40,50 * * * * /usr/local/bin/roundup-mailgw /opt/roundup/trackers/support imap