Commit graph

265 commits

Author SHA1 Message Date
Ole Laursen 03bed41630 Merged in changes from the conversion branch
- Legacy-Id: 3187
2011-06-28 18:20:20 +00:00
Henrik Levkowetz 0ccff982bb Merged [2948] from bmheight@gmail.com:
Addresses issue #628, using reverse() and the newly created helper function 
reverse_lazy()  (found in ietf/utils/lazy.py) to DRY out the code a bit by 
decoupling the urls from being hardcoded.

With this commit idrfc, and ipr modules have been modified to take advantage 
of the reverse() and reverse_lazy() functions.
 - Legacy-Id: 2956
Note: SVN reference [2948] has been migrated to Git commit 9399a2e0e8bbfe5c5a16781fd784776cfa31fbac
2011-03-26 14:36:10 +00:00
Henrik Levkowetz 6571b50aae Only try to open a legacy url if it leads to a file; not if it leads to a directory.
- Legacy-Id: 2770
2011-01-28 09:52:14 +00:00
Henrik Levkowetz 266b7820d0 Merged from log:branch/2.00@2363: Current release branch head to trunk.
- Legacy-Id: 2365
2010-07-21 12:48:05 +00:00
Henrik Levkowetz fa77ac30d5 Merged r840 from branch/2.00 to trunk, and updated version information in ietf/__init__.py
- Legacy-Id: 841
2007-07-04 21:17:57 +00:00
Henrik Levkowetz 1c2bcbf356 Merged r736 from branch/2.00 to trunk
- Legacy-Id: 737
2007-06-28 08:13:09 +00:00
Henrik Levkowetz 4443ba8f83 Fix pyflakes nit
- Legacy-Id: 724
2007-06-28 00:07:33 +00:00
Henrik Levkowetz d159cae75c Adding a test case for /ipr/update/<num>/
- Legacy-Id: 723
2007-06-28 00:04:49 +00:00
Henrik Levkowetz 24c320f763 Restrict all found IPRs to status 1 and 3. Only show links to, and display details of, IPRs with status 1.
- Legacy-Id: 720
2007-06-27 22:24:24 +00:00
Henrik Levkowetz cd030d3b43 Adding copyright notices to all python files
- Legacy-Id: 716
2007-06-27 21:16:34 +00:00
Bill Fenner 1163bcb2b9 When updating a 3rd-party disclosure, the updater is the ietf participant,
otherwise the updater is the submitter.
 - Legacy-Id: 708
2007-06-27 17:42:35 +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
Henrik Levkowetz 188a562114 IPR title search with test cases and acceptable diffs
- Legacy-Id: 697
2007-06-27 14:12:54 +00:00
Bill Fenner 760c1190e7 Send email on new/update submission.
Render "ipr/submitted.html" instead of redirecting to the IPR directly.
 - Legacy-Id: 696
2007-06-27 13:45:30 +00:00
Henrik Levkowetz b030e37f77 * Added IPR patent info search
* Added IPR patent info search term error pages
 * Fixed empty holder search template error
 * Some refactoring to have one ipr->doc relation instead of both ->drafts and -> rfcs
 - Legacy-Id: 687
2007-06-27 11:29:43 +00:00
Henrik Levkowetz 2bb88100d0 * Added IPR search on document title
* Added test cases for this and for addtional empty test results
 * Some refactoring of IPR search code
 * Fixed bugs in multiple templates for the empty test result case
 - Legacy-Id: 685
2007-06-27 09:25:14 +00:00
Bill Fenner e5610d3f6c * Explicitly truncate a long title so that the database truncation doesn't cause problems
* Use RequestContext
 * Remove a couple of debugging prints that I left in
 * Fix parenthesis location in get_ipr_summary() which was causing it to try to concatenate a list and a string
 - Legacy-Id: 684
2007-06-27 04:31: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 9074e9555c Additional IPR searches: WG search and holder (legal name) search.
- Legacy-Id: 644
2007-06-25 21:03:34 +00:00
Henrik Levkowetz 23802f4987 Fixed order of query arguments, for redirect test
- Legacy-Id: 582
2007-06-21 15:12:00 +00:00
Henrik Levkowetz 3ba8f23dfe Added IPR search for IPR holder name
- Legacy-Id: 580
2007-06-21 14:56:05 +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 7d33c372d1 Template and code changes for the third-party IPR disclosure page, and an acceptable diff file.
- Legacy-Id: 483
2007-06-17 21:08:36 +00:00
Henrik Levkowetz e4deb27623 Changed query argument order in testurls to agree with the order produced by the redirects. Accompanying new acceptable diff file.
- Legacy-Id: 481
2007-06-17 21:05:29 +00:00
Henrik Levkowetz f051f64977 Fixing some renaming breakage.
- Legacy-Id: 479
2007-06-17 16:13:14 +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 6d46a27d6b More testurls and one more IPR redirect
- Legacy-Id: 434
2007-06-16 16:05:46 +00:00
Henrik Levkowetz 855e4b0398 Updated IPR test URLs
- Legacy-Id: 422
2007-06-15 19:49:15 +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 d17dc96f3c Backing out the previous change so I can commit it with proper comments...(2)
- Legacy-Id: 388
2007-06-14 23:44:30 +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 5fae7d56b2 Fixing some template changes needed after the model surgery in changeset [186], and extending the attribute alignment to IprRfc and IprDraft models.
- Legacy-Id: 363
Note: SVN reference [186] has been migrated to Git commit 5f4d99a36a
2007-06-13 14:05:26 +00:00
Henrik Levkowetz e1e375e269 IPR presentation tweaks
- Legacy-Id: 352
2007-06-12 22:46:54 +00:00
Henrik Levkowetz 44b76b7b4f IPR test-URLs
- Legacy-Id: 350
2007-06-12 21:58:38 +00:00
Henrik Levkowetz aa3924e102 Testing a specific IPR declaration
- Legacy-Id: 281
2007-06-10 11:33:24 +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
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 186f3f3043 Minor tweak: Make the links produced by the top index page end in '/'.
- Legacy-Id: 187
2007-05-31 09:14:49 +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 255e2e5a1a IPR Form stuff:
* Added validation code for RFCs and Drafts.
 * Some stylesheet tweaks.
 - Legacy-Id: 144
2007-05-21 20:36:21 +00:00
Henrik Levkowetz d7b47093a7 * Added alternating colours for the entry rows in the form tables
* Fixed yes/no radio button layout
 * Fixed submitter contact information copying for generic form
 - Legacy-Id: 143
2007-05-21 19:07:13 +00:00
Henrik Levkowetz f9c6c5c7d3 * Added IPR form fields for listing rfcs and drafts
* Some style tweaks
 - Legacy-Id: 142
2007-05-21 16:49:26 +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 c915c5f7e6 * Added automatic 'required-field' indicator to the form rendering
* Made 'Legal Name' field in the IprDetails model required
 - Legacy-Id: 107
2007-05-06 23:29:10 +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 d927568b25 * Added henrik's IPs to local sites in settings.py
* Added accessor functions for contacts to ipr/models.py
 * Added an IPR feed
 - Legacy-Id: 102
2007-05-05 08:58:22 +00:00
Bill Fenner 19896dc647 Adapt to moved Rfc model.
- Legacy-Id: 99
2007-05-04 21:35:12 +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