Commit graph

65 commits

Author SHA1 Message Date
Bill Fenner 430c53c9a3 Spell "skipredirect" properly.
- Legacy-Id: 613
2007-06-22 11:22:42 +00:00
Bill Fenner 0a3cee08a0 Skip the mailinglists/request/help redirect tests; those are only
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
2007-06-22 01:46:47 +00:00
Bill Fenner edb82f5d6c Implement revision_display for RFCs.
- Legacy-Id: 607
2007-06-22 01:43:00 +00:00
Bill Fenner 3c0e569d33 Import TemplateSyntaxError
- Legacy-Id: 601
2007-06-21 20:15:17 +00:00
Bill Fenner 09c0829127 Use the "M, j" format for last call end date too.
Add the year to the date field when it's not this year, using a new template tag "thisyear" which returns a boolean.
Also implement template tag "inpast" which I think could be useful for the meeting materials page.
 - Legacy-Id: 599
2007-06-21 20:03:39 +00:00
Bill Fenner c6493ad8ab Match I-D tracker search results better:
* Don't sort by ballot ID.
 * dictsort by filename within 'primary_flag' sets inside the template.
 * Change myifchanged to not reset on the first cycle of a for loop.
 * Introduce cyclevalue tag, to get the current cycle color from the cycle node itself instead of the context, since the context gets reset between for loops.
 - Legacy-Id: 596
2007-06-21 19:07:40 +00:00
Bill Fenner 8749188880 Pseudo-documents need primary_flag=1 to get rendered as though
they're the primary in their document set.
 - Legacy-Id: 594
2007-06-21 18:54:12 +00:00
Bill Fenner d43dd881a4 For the "I-D Exists" search, only search active documents - ignore
the supplied status in the pulldown.
 - Legacy-Id: 591
2007-06-21 17:51:30 +00:00
Bill Fenner 21c00de37f The status of items page isn't good to diff for two reasons:
* It changes all the time, so database update lag will cause differences
 * It changes all the time, so any diff file will be quickly outdated.

I've done extensive review of the whole set of differences between
the django code and perl code running on the same database and am
confident in the correctness of the django code.
 - Legacy-Id: 589
2007-06-21 17:02:44 +00:00
Bill Fenner d3e4dc6064 Omit 'RFC Ed Queue' and 'RFC Published' states.
- Legacy-Id: 584
2007-06-21 15:35:04 +00:00
Bill Fenner 91fbd02ef6 Fix #112 : filter by RFC number if it's an RFC.
- Legacy-Id: 563
2007-06-20 21:44:36 +00:00
Bill Fenner dc0832af51 Chase the renaming of the areadirectors model to areadirector,
and thus the renaming of the auto-generated _set attribute.

Remove the areadirectors_set() function.
 - Legacy-Id: 555
2007-06-20 14:02:32 +00:00
Michael Lee 02cbe98a1f * Add javascripts to the first step
* Add a method areadirectors_set to idtracker/models.py
 * Edit templates to adopt same look and feel with the existing tool
 - Legacy-Id: 550
2007-06-20 05:21:48 +00:00
Bill Fenner f7578e627b Use a regular ChoiceField for substate to allow "None" as an
option.
 - Legacy-Id: 508
2007-06-18 21:18:55 +00:00
Bill Fenner e454f1e4db Filter IETFWG.choices() on type='WG'.
- Legacy-Id: 507
2007-06-18 21:18:21 +00:00
Bill Fenner 91fe8ea9c2 Update compatability with bookmarked searches
- Legacy-Id: 491
2007-06-18 15:53:01 +00:00
Henrik Levkowetz 06091fcdb4 The same name for two functions is unfortunate. Fixed.
- Legacy-Id: 482
2007-06-17 21:07:22 +00:00
Bill Fenner ad150b5a7d Add another couple of redirects to skip
- Legacy-Id: 474
2007-06-17 13:44:11 +00:00
Henrik Levkowetz 73f8620a96 Removing unused imports
- Legacy-Id: 427
2007-06-16 11:24:28 +00:00
Bill Fenner 63d325b0eb This is obsoleted by test/sql_fixup.sql.
- Legacy-Id: 406
2007-06-15 15:28:52 +00:00
Henrik Levkowetz de55978562 New filters to strip leading zeroes, and change rendering of RFCs to be without space between 'RFC' and number
- Legacy-Id: 396
2007-06-15 11:46:36 +00:00
Henrik Levkowetz d989d0aa21 A little filter to add a space to strings like 'RFC1234' to get 'RFC 1234'
- Legacy-Id: 386
2007-06-14 23:38:51 +00:00
Bill Fenner a74d09d172 A debugging print crept into my commit, oops!
- Legacy-Id: 381
2007-06-13 19:47:45 +00:00
Bill Fenner 2bf510f43b Add "myifchanged" tag, which is different from the standard ifchanged
in two ways:
 * It permits an "else" clause.  This code is from http://code.djangoproject.com/ticket/4534
 * It doesn't push the context while rendering, so context changes can be performed (like the change that cycle makes: putting the current value into the context)

Use this new tag to cycle the row color if the ballot_id has changed, or
if it's a synthetic document.
 - Legacy-Id: 380
2007-06-13 18:43:56 +00:00
Bill Fenner 62b82e5ed1 Sort the primary document on a ballot set to the top.
- Legacy-Id: 379
2007-06-13 18:35:11 +00:00
Bill Fenner ada5521a9f Sort states and substates by their ID in the model.
Use the right number of hyphens to separate the current ADs from
old ADs in the I-D Search form.
 - Legacy-Id: 374
2007-06-13 17:23:38 +00:00
Bill Fenner 2ad2219895 Implement DocumentWrapper class, which isn't a model but has enough
of the same API as IDInternal to allow the template to render it.

When fetching lists of document IDs, use values() to fetch only the
ID to reduce database overhead (and model object creation overhead)
 - Legacy-Id: 373
2007-06-13 17:21:22 +00:00
Bill Fenner c4cee402d5 Diff reduction: AD names are "Last, First" and "Area:" is "Area Acronym:".
- Legacy-Id: 333
2007-06-12 16:15:40 +00:00
Bill Fenner 49ee9f8cd7 * Implement replaces and replaced_by in search_result_row and idinternal_detail. (This is almost repeating myself, except for slightly different formatting and different links.)
* Implement displayname_with_link() to go with filename_with_link().
* Implement idtracker backwards linkage in RFC model.
* Don't use unformat_textarea to display Note: - it hasn't been implemented, and seems to want to de-HTML stuff but we're displaying HTML
 - Legacy-Id: 320
2007-06-11 20:27:14 +00:00
Bill Fenner ea639f96c4 * Add filename_with_link to create links only for active documents
* Display document status if it's not Active
* Use revision_display in displayname()
* Check for DocumentComment.created_by flag value of 999
 - Legacy-Id: 317
2007-06-11 18:47:44 +00:00
Bill Fenner 178c5e13e0 * search_result_row.html no longer takes care of the ballot set rendering for you; you have to pass it the entire contents of the ballot set.
* Model and template changes to allow documents to report their name via doctype() to allow "Draft Name:" vs. "RFC Name:"
* Add parenthesis around the submission type to match the cgi
* Pass the whole ballot set to search_result_row from idinternal_detail
* Display only public comments in idinternal_detail
* Use comment.get_absolute_url instead of a relative URL.  (This fixes /idtracker/NNN/comment/YYY/ which wouldn't work)
* Add a search url to compare
* In view, when searching, don't filter for primary_flag=1, but do order by ballot and -primary_flag so that the results are grouped properly.
* Introduce public_comments() accessor which filters comments()
* Fix comments() to not use rfc_flag, to match the schema
* Order ballot_set() by -primary_flag so the results are grouped properly.
 - Legacy-Id: 312
2007-06-11 16:53:25 +00:00
Bill Fenner 2c247157a4 When searching for matching document comments, and rfc_flag is off,
the document_comments table can have either "0" or NULL, so the join
on comments.rfc_flag=self.rfc_flag was skipping the NULL ones.
 - Legacy-Id: 308
2007-06-11 11:04:38 +00:00
Bill Fenner ac288c2d09 Try to cover all the views for the I-D tracker.
- Legacy-Id: 301
2007-06-11 03:39:36 +00:00
Bill Fenner 78cbaf497b A remnant of an inadvisable sweeping change that I made and (incompletely)
un-made snuck in.
 - Legacy-Id: 288
2007-06-10 13:54:48 +00:00
Bill Fenner 4fd0113345 Minor model tweaks:
* set null=True for AreaDirector.area and IETFWG.area_director.
* add filters, ordering, choices etc. for admin interface.
* add constant for "ACTIVE" in IETFWG.
 - Legacy-Id: 285
2007-06-10 13:36:01 +00:00
Bill Fenner e08772430a Create "allononeline" filter and use it for list_wizard_done_email.
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
2007-06-08 18:21:44 +00:00
Bill Fenner e851dbac27 Create mailing list domains table and idtracker Roles model.
Add fixtures to populate IAD into Roles and existing domains
and authorizers into mailinglists_domains.  (The Roles fixture
will become wrong when we get a new IAD so should be removed
after the production database has this value.)
 - Legacy-Id: 255
2007-06-07 17:58:06 +00:00
Henrik Levkowetz 24400ff103 Adding handler404 and handler 500 in the right place ,;-)
- Legacy-Id: 241
2007-06-05 18:18:40 +00:00
Henrik Levkowetz 1523f859af Adding 'handler404, hadler500' to apps needing them
- Legacy-Id: 239
2007-06-05 17:54:43 +00:00
Henrik Levkowetz 03c18bd33d Fixing a bunch of nits pyflakes were complaining about, in order to get a clean run. There are still at least 2 cases of using undefined values which needs scrutiny.
- Legacy-Id: 235
2007-06-05 16:58:58 +00:00
Bill Fenner 1d54ad36c9 Use a known exception when there are too many path arguments (in bits)
- Legacy-Id: 214
2007-06-02 01:15:59 +00:00
Bill Fenner 4a5c6b5c57 Create I-D Search form, with field names matching the old search
form, to allow bookmarked searches to continue to work.
 - Legacy-Id: 200
2007-06-01 02:05:00 +00:00
Bill Fenner b5ce6e375c Extensive updates of idtracker.
ballot sets are now (hopefully) treated properly, except for the
row coloring.  They're also included in the "view_id" view.

Search is re-done, it turns out that using draft__<anything> means
that RFCs won't be matched, so build lists of possibly-matching
RFCs and I-Ds and pass them through.  This applies to filename,
group and rfc number.
 - Legacy-Id: 190
2007-05-31 19:24:26 +00:00
Bill Fenner 5f4d99a36a Implement status_of_items and last_call.
(Oddly, this status_of_items shows more than the cgi one; I can't
explain why.  Also, the cgi one showed the wrong intended status
for RFCs, and the wrong area for several documents.)
 - Legacy-Id: 186
2007-05-30 21:09:17 +00:00
Bill Fenner 7d52fffdcd Implement form for sending email feedback and the actual email sending.
- Legacy-Id: 185
2007-05-30 17:11:48 +00:00
Bill Fenner e9221db2be Minor admin interface tuning.
- Legacy-Id: 184
2007-05-30 15:18:34 +00:00
Michael Lee 1c9bf9b1ca meeting_agenda_html.cgi porting has been completed.
* Add a new method, affiliation to idtracker/models.py, in class PersonOrOrgInfo
 * Agenda for the Plenaries should be stored in /home/master-site/proceedings directory to be displayed.
 * Bug found in listing ADs at the end of the agenda. An agenda always lists the current IESG instead of the IESG at each meeting. Bug is fixed in the ported tool.
 * meeting_agenda_text.cgi was obsolete, but ported anyway in case someone still has it bookmarked.
 - Legacy-Id: 182
2007-05-30 13:47:09 +00:00
Henrik Levkowetz 380546ac46 A Ballot view which is good enough to deploy, I believe. The major
difference is that current ADs are not shown as part of old ballots.
 - Legacy-Id: 178
2007-05-29 00:04:57 +00:00
Bill Fenner 2f56324baa Updates for model names: singular, more descriptive.
- Legacy-Id: 176
2007-05-28 18:51:03 +00:00
Henrik Levkowetz 243a1a8616 Fixed some pages which broke due to the field name change ballot_id => ballot in IDInternal
- Legacy-Id: 174
2007-05-28 15:07:34 +00:00