* 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
* 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
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
since it was for development. This fixes the exception that
Harald experienced with the mailing list update tool, but not
the underlying problem.
- Legacy-Id: 901
* announcements -> ann
* liaisons -> liaison
* idindex -> drafts
* mailinglists -> list
I checked the tests and used a link checker locally, so hopefully
the fallout will be minimal.
- Legacy-Id: 657
served by the mailing list form so bookmarks to them are extremely
unlikely.
Remove trailing "?" from /idtracker/ entry; the redirect tool
strips off empty query strings.
Add ?cat=bugs to the send_email entry so the redirect will pass.
Skip the redirect test for the ballot, since there's an extra
(unused) query argument, filename=.
Add in all the query args that will get passed through the
redirect when searching for bgp-m, to make sure that they work
and to make the redirect test pass.
- Legacy-Id: 609
Implement javascript to disable form elements that aren't used
when wg or non-wg items are selected.
Implement javascript to reload the page with the right set of
non-wg mailing lists to close.
- Legacy-Id: 274
pick the approver, since the main form's version has been changed
to ietf.org if appropriate.
Don't try to look up the main_form -- since we're currently processing
the main_form, it's just 'form'!
- Legacy-Id: 271
the form attribute "initial" (as in initial data)
Render the form field-by-field for MailingListForm, so that
we can render the mailing list name conditionally as a text input
box or as a hidden field with the value in the page. We can also
insert the domain name here too. (Note that this means that
hidden fields in this form other than domain name have to be
treated specially!)
- Legacy-Id: 270
Use the Site to get the URL in list_wizard_done_email.
Set req for list_wizard_done_email as it is for approval email.
Only use domain-based extra approvers for non-WG requests.
Supply hidden fields for mlist_name and domain_name for deletion.
(These should be visible but uneditable, but passing them
through is a start)
- Legacy-Id: 267