Commit graph

184 commits

Author SHA1 Message Date
Henrik Levkowetz 9b78963547 Fix occasional bad sentence end merges in ietf/utils/soup2text.py.
Remove some now unneded exceptions from ietf/testurl.list
 - Legacy-Id: 302
2007-06-11 04:22:29 +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
Henrik Levkowetz a7a6d956af Adding a fix in soup2text for a common pathological case: <br><br> used instead
of <p /> to indicate paragraph breaks.

This changes the failed diff for /iesg/telechat/detail/354/ to show only three
differences, where two are whitespace differences and one shows a difference
between '@ietf.org. The' and '@ietf.org . The' and is an artifact of the text
extraction.  Will look at fixing that next.
 - Legacy-Id: 300
2007-06-11 03:36:08 +00:00
Bill Fenner da2de838c9 A first attempt at a list of urls to test and compare.
- Legacy-Id: 299
2007-06-10 23:32:37 +00:00
Henrik Levkowetz 2403b0b531 Enabled the temporarily disabled fallback URL tests.
- Legacy-Id: 298
2007-06-10 20:30:43 +00:00
Henrik Levkowetz 04f8f1ca0d Commenting out some diagnostic printouts. Changing the summary format so it differs from the primary result lines.
- Legacy-Id: 296
2007-06-10 18:37:50 +00:00
Henrik Levkowetz 6d5afa514a Adding diff file for an IPR url, and some ipr/tests.py tweaks.
- Legacy-Id: 294
2007-06-10 18:19:42 +00:00
Henrik Levkowetz b6c7aed469 Adding a recognizable tag for the diffs, for use by the buildbot
- Legacy-Id: 291
2007-06-10 16:40:55 +00:00
Henrik Levkowetz 341811e84e Patched a bug in BeautifulSoup (discovered by PyFlakes) and quietened the remaining nonconsequential comments from PyFlakes regarding BeautifulSoup
- Legacy-Id: 290
2007-06-10 14:14:16 +00:00
Henrik Levkowetz 7c60b321cd Add BeautifulSoup.py to the ietf/contrib/ directory so it doesn't have to be installed separately
- Legacy-Id: 289
2007-06-10 14:02:11 +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 3811dcf8ac Don't import Acronym, since we don't use it.
Filter by active groups when creating the list of groups.
 - Legacy-Id: 286
2007-06-10 13:37:14 +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
Henrik Levkowetz 06eae09af4 Removing unused imports from ietf/tests.py. Using the right Exception type in soup2html.
- Legacy-Id: 283
2007-06-10 11:43:19 +00:00
Henrik Levkowetz aa3924e102 Testing a specific IPR declaration
- Legacy-Id: 281
2007-06-10 11:33:24 +00:00
Henrik Levkowetz 76f759c19c Minor fixes to the ipr details template
- Legacy-Id: 279
2007-06-10 11:31:29 +00:00
Henrik Levkowetz 0e1bda0997 Adding diff capability to the URL tests.
If you list a second url or file on a line in an urltest.list file, the
second url will be downloaded, both urls will be converted to text, and
then compared.  If there are differences, a unified diff will be output.
 - Legacy-Id: 278
2007-06-10 11:30:23 +00:00
Henrik Levkowetz 10ce0e07dd 'soup2text' is a html-to-text converter which uses the BeautifulSoup.py module. It converts html to plain paragraph-filled readable text.
- Legacy-Id: 277
2007-06-10 11:27:02 +00:00
Bill Fenner 100f24baef Add help popup to MailingListForm.
- Legacy-Id: 276
2007-06-10 03:02:01 +00:00
Bill Fenner 20334bc8aa If the data is None, use an empty string in the hash instead.
- Legacy-Id: 275
2007-06-10 02:59:17 +00:00
Bill Fenner fdca154e75 Implement custom form rendering for step 0.
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
2007-06-10 02:00:51 +00:00
Bill Fenner ebe29bc1af Add javascript to display/clear the requestor's address in
the textbox at the top of the list administrators multifield.
 - Legacy-Id: 273
2007-06-09 03:45:35 +00:00
Bill Fenner f8dbed4884 Fix preview by creating a MailingList object and using the
existing list_summary.html.
 - Legacy-Id: 272
2007-06-08 20:45:41 +00:00
Bill Fenner 48a4219a32 Use the main form's domain_name, not the initial domain_name, to
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
2007-06-08 20:04:52 +00:00
Bill Fenner 89a8834177 Rename "initial" to "initial_members" so that it doesn't shadow
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
2007-06-08 19:54:59 +00:00
Michael Lee 415e274dde IESG Announcment list page only lists announcements with ballog_id
- Legacy-Id: 269
2007-06-08 19:21:03 +00:00
Bill Fenner b16a65966e I committed the middleware that uses this but forgot to commit
the template.
 - Legacy-Id: 268
2007-06-08 18:25:13 +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 4e3769c963 Turn post_admin and archive_private into IntegerField instead of
BooleanField.  They are used as booleans, but represented in the
database as integers, so pretending they're boolean causes trouble
when saving empty values.
 - Legacy-Id: 266
2007-06-08 18:12:23 +00:00
Bill Fenner 804f669e45 Actually include the template. Don't use titlecase since
It Looks Weird To Say I Want To Move The Wg Email List For
Eap To Ietf.Org
 - Legacy-Id: 263
2007-06-08 17:07:51 +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 027d471dd0 Changing the default email-from address used whentesting, and tweaking the test output
- Legacy-Id: 261
2007-06-08 16:01:52 +00:00
Bill Fenner 2d9cc036a6 If we're passed in None, don't try to get the domain name out of it.
- Legacy-Id: 260
2007-06-08 15:48:09 +00:00
Bill Fenner 3cd72bc1fe Great leaps towards completing the mailing list request tool.
- Legacy-Id: 259
2007-06-08 15:30:34 +00:00
Henrik Levkowetz a99d598cc0 * Minor refactoring in ietf/tests.py
* Added correct dates for two entries in ipr_detail which had 0000-00-00,
   in the sql_fixup.sql file
 * Fixed test/run so it can be run from any directory
 - Legacy-Id: 258
2007-06-08 12:06:15 +00:00
Henrik Levkowetz 88666eac59 Some bugfixes after refactoring
- Legacy-Id: 257
2007-06-07 20:40:50 +00:00
Henrik Levkowetz 73bd413e07 A bit of refactoring in ietf/tests.py
- Legacy-Id: 256
2007-06-07 20:12:52 +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 b93c34d7bb Removing 200-response non-parameter url from the testurl.list; they are better handled by the fallback test.
- Legacy-Id: 254
2007-06-07 17:40:06 +00:00
Henrik Levkowetz 742737251f Adding a placeholder HTTP 500 error page template
- Legacy-Id: 251
2007-06-07 14:17:09 +00:00
Henrik Levkowetz 7962e722d3 Adding HTTP 404 error page template
- Legacy-Id: 250
2007-06-07 14:11:43 +00:00
Henrik Levkowetz 8b17a99d22 Removing explicit listing of URLs caught by the fallback URL test.
- Legacy-Id: 248
2007-06-06 19:34:16 +00:00
Michael Lee ac82271bcb Update IESG Announcement scripts to work with latest models and template changes.
- Legacy-Id: 247
2007-06-06 05:11:06 +00:00
Bill Fenner 7fec55b633 Initial implementation of view_related. The related_docs() function
is still a work in progress.  I've been using
draft-ietf-dnsext-dnssec-protocol as a test case; related_docs()
returns the same 137 documents as the cgi code but some of the
relationships are different.  Right now, the skip argument is
ignored.
 - Legacy-Id: 246
2007-06-06 02:14:29 +00:00
Henrik Levkowetz f5027059b3 Corrected some test URLs. (should be changed later to not use underscore -- or we should change all dashes to underscore...)
- Legacy-Id: 245
2007-06-05 19:02:27 +00:00
Henrik Levkowetz cf878dc7a5 Some more permitted codes
- Legacy-Id: 244
2007-06-05 18:57:17 +00:00
Henrik Levkowetz 5e6a346ddc Should not compare apples and oranges
- Legacy-Id: 243
2007-06-05 18:48:14 +00:00
Henrik Levkowetz 49f8de31b4 Permitting both 404 and 200 responses for some URLs, for now; till we can run tests with a populated database
- Legacy-Id: 242
2007-06-05 18:43:48 +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
Bill Fenner 3754c0c6b4 Initial list wizard templates.
- Legacy-Id: 240
2007-06-05 18:05:57 +00:00