Commit graph

689 commits

Author SHA1 Message Date
Bill Fenner 473b2bdc60 Merge auth branch.
- Legacy-Id: 1149
2008-04-04 05:07:51 +00:00
Bill Fenner 027232d642 Implement scheduled mail sending via django infrastructure,
for testing the I-D Submission tool's announcements.

Note that this implementation does not use the queue fields
in the database, so before deploying in production the purpose
of those fields will have to be understood.
 - Legacy-Id: 1147
2008-04-03 15:23:48 +00:00
Bill Fenner dd7b2b2803 Add EMAIL_COPY_TO configuration to allow an installation to use
a different debugging email destination than the default gmail account.
 - Legacy-Id: 1145
2008-04-01 04:14:49 +00:00
Bill Fenner 1d8130b64f Remove area_director to allow this model to be admin'd via the django
admin interface.  The database inconsistencies (missing rows in area_director
for concluded groups/areas) are ones that django can't handle.
 - Legacy-Id: 1144
2008-04-01 00:14:09 +00:00
Bill Fenner c0a3083009 Fix a typo.
- Legacy-Id: 1139
2008-03-31 20:32:35 +00:00
Bill Fenner b915d03c58 Add a feed for documents on the IESG telechat.
Improve the admin interface for iesg_login and irtf rg's and chairs.
 - Legacy-Id: 1138
2008-03-31 20:30:37 +00:00
Bill Fenner b1ded59390 Fix #275: redirect meeting/ to meeting/<current>/materials.html
- Legacy-Id: 1135
2008-03-30 08:50:05 +00:00
Henrik Levkowetz 54950fefdf Check environment variable IETFDB_REF_PREFIX for possible test reference URL prefix.
- Legacy-Id: 1067
2008-03-06 00:38:34 +00:00
Henrik Levkowetz 0458c69c8f Adding IETF Trust copyright to source files missing it.
- Legacy-Id: 1064
2008-03-04 18:47:46 +00:00
Henrik Levkowetz f3e6a30b97 Pulled out hardcoded IPR notification email receiver addresses from code and placed them in settings.py instead.
- Legacy-Id: 1062
2008-02-29 23:48:09 +00:00
Bill Fenner 06d41c76d2 Update so that certain messages can go out in test mode.
- Legacy-Id: 1061
2008-02-29 21:59:14 +00:00
Henrik Levkowetz 72a8e15945 Set version info and settings back to development mode
- Legacy-Id: 969
2007-11-05 15:55:07 +00:00
Henrik Levkowetz a53b3e3e2f Set version info to release version 2.06 before branching.
- Legacy-Id: 967
2007-11-05 15:55:04 +00:00
Michael Lee c92da0ed5e To resolve ticket #237
* view.py passes two queries for sessions: one with day_id <= 0 (pre session) and the other with day_id > 0 (regular sessions) to the meeting agenda templates
 - Legacy-Id: 965
2007-10-31 15:47:57 +00:00
Henrik Levkowetz 8d22d4bb1c Set version info and settings back to development mode
- Legacy-Id: 964
2007-10-31 07:37:41 +00:00
Henrik Levkowetz 645335fae6 Set version info to release version 2.05 before branching.
- Legacy-Id: 962
2007-10-31 07:37:37 +00:00
Michael Lee a7b3240bb8 Resolve ticket #205
* Relocate the form_decorator definition for area drop down to make the form_for_model case simpler
* Remove lines that are not used to handle 'None' area.
 - Legacy-Id: 961
2007-10-30 00:22:50 +00:00
Michael Lee 1163829ed2 Delete importing ModelChoiceFiled from mailinglist/forms.py. It is being used as forms.ModelChoiceField in the code, so importing it separately is not needed.
- Legacy-Id: 960
2007-10-26 14:29:06 +00:00
Michael Lee 2ee10f7ca5 Delete unused imports, QuerySetIterator and Field from mailinglists/forms.py
- Legacy-Id: 959
2007-10-26 13:45:59 +00:00
Bill Fenner b047074802 Send another EHLO after starting TLS, as suggested by RFC 2487.
I might argue this is a bug in smtplib; RFC 2487 says that the client
"MUST discard any knowledge obtained from the server, such as the list
of SMTP service extensions, which was not obtained from the TLS
negotiation itself"
 - Legacy-Id: 958
2007-10-25 17:23:03 +00:00
Michael Lee a649c852cc * Remove LooseModelChoiceField
* Use ModelChoiceField

 * use empty_label='none'
 - Legacy-Id: 957
2007-10-25 05:26:37 +00:00
Bill Fenner 169137f85b Set debugging before establishing connection.
Use starttls when sending a username and password.
Fail if the EHLO reply doesn't advertise starttls, or if
the starttls reply isn't 220.
 - Legacy-Id: 954
2007-10-24 17:13:04 +00:00
Michael Lee 463182dd3f Update ticket 205
* remove clutter from previous commit

  * if we get rid of 'none' from the drop down and use '--------' instead, then we can even remove LooseModelChoiceField and simply use django's ModelChoiceField. However, it may be confused in user's perspective.
 - Legacy-Id: 953
2007-10-16 06:33:23 +00:00
Spike^ekipS d143d41653 To enable to select 'none' area in wizard page of none-wg-mailinglists without any
modification of TABLE 'Area'(see Bill's comment in ticket:205), I add the classes in
mailinglists module.

    * ietf/settings.py 

At first, add CONSTANT, CODE_AREA in ietf/mailinglists/__init__.py for global access.

CODE_AREA = {
        "none" : "-100",
}

To keep the code stability of 'area_acronym_id' in TABLE 'none_wg_mailing_list',
CODE_AREAOther? assigned -100.

    * ietf/mailinglists/forms.py 

        add 'SelectWidgetArea', it just add psuedo choice in 'area' select input box.

    * ietf/mailinglists/models.py 

        add new ForeignKey type 'ForeignKeyArea' to keep the existing deep form-model
relations, so this new field type handles normal area value and 'none'.

        The class, 'NonWgMailingList' has some changes. To prevent 'DoesNotExist'
Exception when fetching the real acronym from 'Acronym', add setattr method. It stores
'none' area value in /* cache */ and return it.

    * ietf/mailinglists/views.py 

        In the last step of update wizard, split the routine to check whether the area
code is 'none' or not. If 'none', the approval persons is fetched from 'Role'(TABLE
'chairs').

There is changes only in 'mailinglists' module, so I guess this works.
 - Legacy-Id: 952
2007-10-03 14:46:55 +00:00
Nathan Cassano df801b6c39 Moved from idsubmit branch. Added a new checkbox field to the mailing list creation and approval screens for an option to require the new list to use TMDA
- Legacy-Id: 950
2007-09-30 23:50:14 +00:00
Bill Fenner 1f3beffd44 Add the date to the title. Related to ticket #209
- Legacy-Id: 943
2007-09-19 23:30:02 +00:00
Bill Fenner 77484b614c Title updates:
* Detail view includes title of disclosure
 * List view title changed from "IPR Update" to "IPR List"

Also removed {{ debug }} from end of detail view, which
displays "True" at the bottom on a site that's debugging -
I don't know what was meant, but probably not that.

Related to ticket #209
 - Legacy-Id: 942
2007-09-19 23:25:05 +00:00
Bill Fenner e742eb9d3c Use the form to validate that the RFC number input is a number.
If the form doesn't validate, then don't do the search.
Fixes ticket #229.

Also fix a related problem: searching for a WG with no documents
is the same as searching for all documents.  This seems to be
a bug in the way empty Q objects work.  (A different fix would
be to raise a form validation error if the WG didn't exist,
but if the WG existed and didn't have any documents this problem
would still arise)
 - Legacy-Id: 941
2007-09-19 21:12:18 +00:00
Bill Fenner 0c1cf36cd4 Fix incorrect length specification left over from bad
introspection.
 - Legacy-Id: 940
2007-09-19 21:09:31 +00:00
Bill Fenner 052b774fa6 Rename the WgPassword and LiaisonUsers models to make their
legacy status clear.
 - Legacy-Id: 938
2007-09-18 18:31:42 +00:00
Bill Fenner 93b1034562 Turns out that, for some reason, the IETF 70 agenda and materials
are no longer 404 errors.  Push this problem out a little further ;-)
 - Legacy-Id: 937
2007-09-18 18:08:58 +00:00
Bill Fenner 68228beb2d Updated generated-model to reflect a current database snapshot.
- Legacy-Id: 933
2007-09-07 12:10:14 +00:00
Bill Fenner f2c636a610 Fix addition of a rolodex entry in the admin interface
- Legacy-Id: 932
2007-09-06 17:50:22 +00:00
Bill Fenner 0502d5c772 Use fields, etc., and other tweaks to improve the admin interface.
Update postal, email and phone tables to know that the database
now has an ID field.

Give ChairsHistory a FK to Roles to allow keeping history of other
roles.  This raises the idea of changing the model name.
 - Legacy-Id: 928
2007-09-06 17:12:35 +00:00
Bill Fenner 7c9ab96fb1 Add the "recent liaisons" atom feed as an alternate of this page.
- Legacy-Id: 927
2007-09-06 16:39:32 +00:00
Bill Fenner 55a7715694 Factor out user creation from the import-users script so that
self-registration can also create a user.
 - Legacy-Id: 926
2007-09-06 16:34:03 +00:00
Bill Fenner b6301e4660 Based on Nico Williams' case-sensitive email problem, make sure
that usernames and emails are compared ignoring case when logging
in.
 - Legacy-Id: 925
2007-09-06 15:12:33 +00:00
Bill Fenner 6cd7612f2c If there's no person, output a "missing info" line instead of a blank
line.  Makes explicit the problem 1 in ticket #232 instead of implying
that we've supplied all the information.
 - Legacy-Id: 924
2007-09-05 17:30:11 +00:00
Bill Fenner 9f0f77c5bd Ignore trailing blank lines in form data, since some browsers
strip these inside <input type="hidden">
 - Legacy-Id: 923
2007-09-05 15:38:59 +00:00
Bill Fenner 0baf363e84 Add templates for the django builtin auth views, so they don't
fall back to the admin templates.
 - Legacy-Id: 922
2007-09-05 12:02:43 +00:00
Bill Fenner ee17e225c1 Remove unique=True from UserMap's user field, because of
http://code.djangoproject.com/ticket/565
 - Legacy-Id: 921
2007-09-05 11:58:48 +00:00
Bill Fenner ac4eb08976 Add an index on rfc_number. The plan in #98 is to make this a unique
index, but there is a performance boost to having an index before the
database modifications to allow it to be unique can be peformed.
 - Legacy-Id: 917
2007-08-06 15:16:54 +00:00
Bill Fenner 2671982d79 Remove Q debugging code.
Add author to each item.

Don't HTML-escape the title; atom titles are plain text.
 - Legacy-Id: 916
2007-08-01 17:32:31 +00:00
Bill Fenner 16e1fa7530 Add "to" and "subject" fuzzy searches.
- Legacy-Id: 915
2007-08-01 16:23:20 +00:00
Bill Fenner b2d2816b8f Use a custom view for RFCs, not the generic view. The generic
view would try to access the PK value, which for IDInternal is
an FK to InternetDraft, which is inappropriate for RFCs.

Also use the IDInternal value for rfc_flag when deciding on the
absolute url, not the comment table, since rfc_flag can be set wrong
in the comment table.

Fixes #218.
 - Legacy-Id: 913
2007-07-31 16:46:03 +00:00
Bill Fenner 9d119f2989 The syntax for feeds from bodies is now /feed/liaison/from/body-name/
where body-name is lowercased and has non-word characters replaced by
hyphens.  This is accomplished with a 'like' query using an extra()
statement, making this bit of code mysql-specific.
 - Legacy-Id: 912
2007-07-31 15:19:59 +00:00
Bill Fenner 610f685309 Comment out the liaison feeds until we figure out the utf-8 issue.
- Legacy-Id: 911
2007-07-31 15:08:54 +00:00
Bill Fenner a40661fe4f Add the liaison token holder to the title for secretariat-entered
liaisons.  Also add the title to the HTML title in the detail page,
partly addressing ticket #209.
 - Legacy-Id: 910
2007-07-31 14:52:01 +00:00
Bill Fenner f8bedea9af Don't use .draft as an accessor, use .document. I found this while
investigating ticket #218, and while it's not the cause it's worth
fixing anyway.
 - Legacy-Id: 909
2007-07-31 14:47:52 +00:00
Bill Fenner 431c4cfa62 Improve admin interface slightly for contacts.
- Legacy-Id: 908
2007-07-30 20:18:39 +00:00