Commit graph

1485 commits

Author SHA1 Message Date
Henrik Levkowetz 063f9146db Set version info to release version 2.04 before branching.
- Legacy-Id: 894
2007-07-16 20:19:27 +00:00
Vidyut Luther 92f59449c7 Adding configuration files from the /etc/ filesystem, as they are used in production
- Legacy-Id: 891
2007-07-16 16:08:19 +00:00
Henrik Levkowetz c6d637e557 Merged production settings into svn version of settings.py, except for the DATABASE_PASSWORD. *Set this in settings_local.py, do not edit settings.py*. See #208.
- Legacy-Id: 888
2007-07-16 08:34:01 +00:00
Henrik Levkowetz 20d2dec7e2 Set version info and settings back to development mode
- Legacy-Id: 883
2007-07-09 22:00:07 +00:00
Henrik Levkowetz e6137c747c Set version info to release version 2.03 before branching.
- Legacy-Id: 881
2007-07-09 22:00:03 +00:00
Bill Fenner f784bb02ad Create individual sitemaps for idtracker, drafts, nomcom-announcements,
iesg minutes, ipr and liaisons.

Omitting some class of data from the sitemap will not prevent it from
being indexed, so forgetting something from this list is not critical.
 - Legacy-Id: 861
2007-07-09 02:32:39 +00:00
Bill Fenner 60cd431e2f Add middleware that catches 404 errors if the original URL has a trailing
period and redirects to the same URL with no trailing periods.
Add a redirect test in the top-level testurl.list.
 - Legacy-Id: 850
2007-07-07 19:26:18 +00:00
Henrik Levkowetz fa77ac30d5 Merged r840 from branch/2.00 to trunk, and updated version information in ietf/__init__.py
- Legacy-Id: 841
2007-07-04 21:17:57 +00:00
Henrik Levkowetz 5d0a89347a Set version info and settings back to development mode
- Legacy-Id: 840
2007-07-02 22:00:07 +00:00
Henrik Levkowetz d64614ab60 Set version info to release version 2.02 before branching.
- Legacy-Id: 838
2007-07-02 22:00:04 +00:00
Henrik Levkowetz f2f52996d4 Make it configurable which host (and path prefix) we'll use to retrieve legacy page content for diff testing. Add a setting in settings.py pointing to http://compost.research.att.com/old/.
- Legacy-Id: 767
2007-06-29 16:05:14 +00:00
Henrik Levkowetz 4790b6a191 Post-release updates
- Legacy-Id: 742
2007-06-28 09:55:05 +00:00
Henrik Levkowetz 8031f51db4 Turning off I18N -- the new code is running slower on datatracker than the old one, going by the time the buildbot takes.
- Legacy-Id: 739
2007-06-28 08:41:53 +00:00
Henrik Levkowetz 8c1d9e62fd Set version of the trunk to 2.xx-trunk after branching off 2.00
- Legacy-Id: 729
2007-06-28 01:00:05 +00:00
Henrik Levkowetz 799d4e9b43 Set version info to release version 2.00 before branching.
- Legacy-Id: 726
2007-06-28 01:00:01 +00:00
Henrik Levkowetz cd030d3b43 Adding copyright notices to all python files
- Legacy-Id: 716
2007-06-27 21:16:34 +00:00
Henrik Levkowetz b030e37f77 * Added IPR patent info search
* Added IPR patent info search term error pages
 * Fixed empty holder search template error
 * Some refactoring to have one ipr->doc relation instead of both ->drafts and -> rfcs
 - Legacy-Id: 687
2007-06-27 11:29:43 +00:00
Henrik Levkowetz 0ed0d375ee Adding a footer line with version info and webmaster link, and a context processor to transfer information to it and variables in ietf/__init__.py to hold the information.
- Legacy-Id: 652
2007-06-26 17:30:25 +00:00
Bill Fenner 5a4e9de2f1 Remove the hardcoded " - WCF" from the title.
Export server_mode into the template context, and use it to conditionalize
the addition of the server mode into the title.
 - Legacy-Id: 632
2007-06-25 16:32:08 +00:00
Bill Fenner 24800f090b Add missing slash.
- Legacy-Id: 567
2007-06-20 22:50:01 +00:00
Bill Fenner 3923233740 Add the admin media and the I-D Tracker images to static/. These
belong in the apache document root, and will be served by the
django server if it's being run in test or development mode
according to SERVER_MODE.
 - Legacy-Id: 566
2007-06-20 22:46:10 +00:00
Bill Fenner 94373f2915 Use humanize for the "th" suffix for the IETF meeting number.
Capitalize day names.

Don't repeat the month unless necessary and the year at all of
the meeting dates.

Still missing: group type (e.g., "WG" or "BOF")
 - Legacy-Id: 522
2007-06-18 22:54:15 +00:00
Henrik Levkowetz f55e0b00f9 * Adding a SERVER_EMAIL setting in settings.py and settings_local_test.py
* Adding the ability to take trailing comments in testurl.list files
 * Listing skipped (not tested) urls in the URL test
 - Legacy-Id: 262
2007-06-08 17:01:07 +00:00
Henrik Levkowetz 745ae10965 Added some more internal IPs
- Legacy-Id: 229
2007-06-05 10:09:24 +00:00
Bill Fenner cae902a373 Add two middleware classes:
- SQLLogMiddleware.  This logs any INSERT or UPDATE performed by
a request.

- SMTPExceptionMiddleware.  This renders a "please try again"
(template email_failed.html) message when an attempt to send
email failed.  This uses a bit of a hack, in that the middleware
looks explicitly for smtplib.SMTPException, and smtplib can
raise other exceptions (particularly socket errors).  utils/mail/send_smtp
catches all exceptions and reraises non-smtplib exceptions as
fake smtplib exceptions, and the middleware undoes the wrapping.
 - Legacy-Id: 224
2007-06-04 13:52:34 +00:00
Henrik Levkowetz 9bced60e2f Added a top-level test module which will run through django URLs in any
committed file named 'testurl.list' in any directory in the ietf/ tree.
There is also a test for URL coverage -- if there isn't declared test
URLs for all the url patterns in ietf/urls.py this coverage test will
fail.
 - Legacy-Id: 215
2007-06-03 19:52:06 +00:00
Bill Fenner 19d77b754a Add mail-sending module. It uses the django settings file for several
bits of configuration (e.g., mail server, any authentication required,
etc.)  It has different behavior based on the setting of the
SERVER_MODE setting:

 - 'development' or 'test': the message will be sent as an attachment
   to ietf.tracker.archive+SERVER_MODE@gmail.com; the actual destination
   supplied won't be used.

 - 'production': the message will be sent to the addressees and a
   copy sent to ietf.tracker.archive+production@gmail.com .

There are several functions to call, depending on what you want
to pass:

 - send_mail_text() takes a request, "To:" list, From header (or None
   to default), Subject text, Body text, an optional Cc: list, and
   an optional dict with extra headers.

 - send_mail() takes a template and a context instead of the body text,
   and renders the template with the given context.

 - send_mail_subj() takes a template for the subject as well as for the
   body.  It uses the same context to render both templates.
 - Legacy-Id: 159
2007-05-24 17:17:47 +00:00
Bill Fenner 4a5a5b1d59 Introduce initial authentication/authorization linkage. This has a
couple of aspects:

 - ietfauth.auth.EmailBackEnd is a django.contrib.auth backend to allow
   two modified authentication methods:

   - using email address (stored in django user table) as login username

   - using htpasswd-style "crypt" passwords (for compatability with
     existing user database).  On the first successful login, the
     password will be re-hashed to the django-hash style password.

 - ietfauth.models.UserMap: a mapping from django user to IETF
   person.  This is configured as the profile table, meaning
   that if you have a django user (e.g., from the RequestContext),
   you can use user.get_profile.person to get to the IETF person.

 - ietfauth.models has models for the "legacy" username/person mapping
   tables (LiaisonUser aka "users" and WgPassword aka "wg_password").
   This is to allow mapping of legacy permissions to django permissions
   by walking these tables and applying permissions to users.  The plan
   is to discard these tables eventually.
 - Legacy-Id: 155
2007-05-23 16:10:32 +00:00
Henrik Levkowetz 56f5fb5a98 Adding TransactionMiddleware to the setup.
- Legacy-Id: 145
2007-05-21 20:56:09 +00:00
Henrik Levkowetz 921236978b Add a reasonable default setup for syslog
- Legacy-Id: 116
2007-05-10 14:41:54 +00:00
Bill Fenner ab92a838a9 The Latin1 encoding setting actually causes problems, since django
assumes that data coming back from the database is unicode so the
 Latin1 data fails to decode properly.
 - Legacy-Id: 114
2007-05-09 22:08:48 +00:00
Henrik Levkowetz 80829985a0 Added prettifying middleware (from djangosnippet 172)
- Legacy-Id: 103
2007-05-06 05:14:25 +00:00
Henrik Levkowetz d927568b25 * Added henrik's IPs to local sites in settings.py
* Added accessor functions for contacts to ipr/models.py
 * Added an IPR feed
 - Legacy-Id: 102
2007-05-05 08:58:22 +00:00
Bill Fenner e73f7dbf5f Implement most of view_id.
* Moved RFCs model into idtracker
 * Switched idtracker querys to use idinternal
 * Created idinternal.document which returns either an InternetDraft or
   an Rfc depending on the value of rfc_flag
 * Create compatability methods in InternetDraft and Rfc models
   to be able to use certain attributes in the template without
   worring about where they come from.

Ticket #59 has a list of remaining bits.
 - Legacy-Id: 98
2007-05-04 21:33:56 +00:00
Henrik Levkowetz 5872696834 Moving ietf to trunk/ietf
[[Split portion of a mixed commit.]]
 - Legacy-Id: 96.1
2007-05-04 12:37:28 +00:00