Commit graph

29 commits

Author SHA1 Message Date
Henrik Levkowetz cd030d3b43 Adding copyright notices to all python files
- Legacy-Id: 716
2007-06-27 21:16:34 +00:00
Bill Fenner cccf7a9ca4 * Skip 'ipr' and 'contact_type' fields in BaseContactForm
* Move update() to new.py
 * Get the update submitter in update() and overwrite the ipr submitter with it when updating.
 * Remove ? from trailing slash in about - the addslashes middleware will get there first anyway, and the ? confuses reverse()
 - Legacy-Id: 705
2007-06-27 17:11:38 +00:00
Bill Fenner 2fa81f4940 Initial work on allowing updates:
* Allow update to pass in an object to be updated.
 * Pass initial values to rfclist, draftlist, 3 ContactForms and IprForm if we have an update.
 * Pass **kwargs through ipr_detail_form_callback to get the initial values.
 * Add a row in IprUpdate if updating

Cleanups in that apply to both new and update:
 * Validate licensing_option in the clean function to allow it to be conditionally required.
 * Use a regular character field for date_applied, since it is a prose date in the database.
 * Fix typo in title setting: s/general/generic/
 * Fix typo in 3rd-party title setting: s/submitter/ietf_name/
 * Fix IprRfc object creation
 * Log the complete set of field errors
 * Move the validation of "one of the document fields must be filled in" to the form clean, since clean_data["draftlist"] isn't available in clean_rfclist()
 * Render non_field_errors since now we could have one.
 * Move the setting of the summary and title to after the form is cleaned, and use the clean version of the document names.
 - Legacy-Id: 683
2007-06-27 04:07:01 +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
Henrik Levkowetz a6c5f1b805 Fixes to IPR templates, view and model, and acceptable diffs.
- Legacy-Id: 485
2007-06-17 23:19:21 +00:00
Henrik Levkowetz 7075fe65a0 Code reorganization. Splitting up ipr search code into separate files, and renaming the ipr.view_new module to ipr.new.
- Legacy-Id: 478
2007-06-17 16:10:20 +00:00
Henrik Levkowetz 6829830b59 Name changes for IprDetail model fields.
- Legacy-Id: 477
2007-06-17 15:53:39 +00:00
Henrik Levkowetz 92968fa04e Somewhat reorganized IPR search code. Renamed IprDetails model field. New IPR search templates.
- Legacy-Id: 476
2007-06-17 15:21:48 +00:00
Henrik Levkowetz 6a2c3ab85f Added IPR search by RFC number.
- Legacy-Id: 400
2007-06-15 11:52:26 +00:00
Henrik Levkowetz 1a9fa6fda6 Fixing accidental breakage of /ipr/ list
- Legacy-Id: 393
2007-06-15 00:05:54 +00:00
Henrik Levkowetz c8c15b7809 Search support for search-by-draft-name and for presenting the final search result. Also test URLS for the new pages.
- Legacy-Id: 392
2007-06-14 23:49:55 +00:00
Henrik Levkowetz c1ea7e35ae Backing out the previous change so I can commit it with proper comments...
- Legacy-Id: 387
2007-06-14 23:43:06 +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
Henrik Levkowetz 90a414fb10 IPR search form. Search results not implemented yet.
- Legacy-Id: 383
2007-06-14 14:06:26 +00:00
Henrik Levkowetz eedd6a8e8c Made URL check code accept comment lines and empty lines in URL file.
Commented out broken URLs in the testurl.list
Fixed a missing import in ipr/views.py
 - Legacy-Id: 219
2007-06-03 23:39:02 +00:00
Henrik Levkowetz c7230247b1 Making the url test more verbose. Adding an initial list of urls to test.
- Legacy-Id: 217
2007-06-03 21:21:29 +00:00
Henrik Levkowetz 0f64cde6c6 More minor cleanup based on pyflakes feedback
- Legacy-Id: 189
2007-05-31 09:46:56 +00:00
Henrik Levkowetz fb5013e849 IPR disclosure form submission now works.
Closing the ipr_generic.cgi ticket, but leaving ipr.cgi and notify.cgi open
till further testing has been done.  Also adding a new task for the IPR
update form.

There may still be some dead code to clean out, but I'm committing what
I have now since it provides working form submission :-)
 - Legacy-Id: 158
2007-05-23 20:11:34 +00:00
Henrik Levkowetz 65f15c77bf Reverting to revision [151] -- committed way too much by mistake
- Legacy-Id: 153
Note: SVN reference [151] has been migrated to Git commit fca8b30b51
2007-05-22 22:29:28 +00:00
Henrik Levkowetz d981d5a617 Template formatting changes, to more easily see what's going on. And sorting on area within the timeslot.
- Legacy-Id: 152
2007-05-22 22:15:13 +00:00
Henrik Levkowetz 64dc0f83c6 * Some code reorganization, moving the large new-disclosure functiality
into view_new.py
 * Added error indication of the top of the page, in case there are any
   errors further down.
 * Set more fields to required, matching the old perl code
 * Various other tweaks.
 - Legacy-Id: 140
2007-05-20 23:42:39 +00:00
Henrik Levkowetz b0f1f5d845 More ipr form stuff.
- Legacy-Id: 139
2007-05-18 18:46:55 +00:00
Henrik Levkowetz 8d7053fc5c * Removed InternationalPhoneNumber class, instead using the form creation
callback to provide a RegexpField class.
 * Added checkbox for submitter contact information being the same as
   IETF contact information; with javascript support and validation
   support.
 * Cleaned out the old split_form() and mk_formatting_form() functions from
   ietf.utils.
 - Legacy-Id: 138
2007-05-18 15:50:30 +00:00
Henrik Levkowetz f1e70cbbe4 Some ipr/model.py field re-arranging to make the admin interface come out nicer
- Legacy-Id: 110
2007-05-09 06:16:50 +00:00
Henrik Levkowetz 26a97835a5 * More logic moved to ipr/views.py.
* Added InternationalPhoneNumberField to ipr/models.py
  Probably should be moved to a common model class file.
 - Legacy-Id: 106
2007-05-06 22:09:52 +00:00
Henrik Levkowetz e8980df65f IPR Form display now works with the same template as data display.
Using some more logic in views.py, less in the templated.

 * Some tweaks in FormattingForm rendering.
 * Selection of which sections to show is now table driven in views.py
 * Some minor refactoring and cleanup in views.py
 * Some more form subclassing in ipr/views.py in order to support form
   validation.
 * Removed style information from ipr/details.html template, and added
   ipr/style.html
 * Cleanup of details.html
 * Fixed ipr/formfield.html to display error messages, and with the right
   class.
 - Legacy-Id: 105
2007-05-06 19:18:17 +00:00
Henrik Levkowetz 68d4a58fa7 The fourth (and last?) take on a form from multiple models,
using pretty much the same template as for a non-form view.

This solution is less hackish than the previous one which
used the form.as_table() rendering of a form, and then split
the resulting html in chunks.

Instead, '''all''' the html has been moved out to a formfield
template, and a custom form class is generated which will render
the form elements using an indicated template.

 * Add form factory in utils.py (an old version which still has
   html in the code is there for history, but will be removed

 * Changes in ipr/views.py:new(), now subclassing one form with
   some class members being other form instances, matching the
   members used for the show() view

 * A fix in ipr/models, making an email field use models.EmailField

 * Reverting a number of changes in ipr/details.html which aren't
   needed any more, as well as in ipr/new.html; and adding
   ipr/formfield.html
 - Legacy-Id: 104
2007-05-06 05:35:46 +00:00
Henrik Levkowetz c2c08c9edc * Added a new funtion in utils.py: split_form()
* Re-wrote the IPR declaration form using form.to_table()
   and the split_form() function in order to get sub-blocks
   of the form which could easily be used with the existing
   IPR detail display templates.

   How to merge forms from multiple models took some thinking;
   since the forms have a common ancestor, multiple inheritance
   doesn't preserve the form data.  In the end the merging
   didn't turn out too horrible.  See ipr.views.new().
 * Changed the IprDetail model; first to specify editable=False
   for all fieleds which shouldn't be shown in the form, but
   this has the drawback of also removing them from the admin
   page form.  Simply bagging them in an un-used sub block with
   split_form() works fine.
 * Changed the URLs for IPR by-date some again
 * Updated the ipr/new* templates to use the form sub-blocks
 - Legacy-Id: 97
2007-05-04 20:21:03 +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