Commit graph

16633 commits

Author SHA1 Message Date
Bill Fenner 147d34aa19 Reorder urlize and linebreaks, to give urlize a better chance at
the email addresses.
 - Legacy-Id: 128
2007-05-10 23:39:33 +00:00
Bill Fenner cd8afa0844 Add the "keep_space" filter to turn " " into "  ".
- Legacy-Id: 127
2007-05-10 23:30:05 +00:00
Bill Fenner f6a55f99d2 Change __str__ representation for a BallotInfo.
Add Positions, IESGComment, IESGDiscuss tables.  (These are
database tables 'ballots', 'ballots_comment' and ballots_discuss'
but I decided to name the classes differently.)
 - Legacy-Id: 126
2007-05-10 23:16:41 +00:00
Bill Fenner 2edecd6f0d Reindent NonSession.
Give NonSession a __str__ to try to help understand what is in it.
 - Legacy-Id: 125
2007-05-10 22:11:35 +00:00
Bill Fenner 6396c8ee73 Use (some) new class functions to generate choices
Defer choice generation from database until object instantiation.
 - Legacy-Id: 124
2007-05-10 22:09:27 +00:00
Bill Fenner 561c97bc72 Add choices() static functions to gather common choices
for select boxes.

Make BallotInfo's primary key an AutoField.
 - Legacy-Id: 123
2007-05-10 22:03:18 +00:00
Bill Fenner 2739083fbe Initial version of forms and views for mailing list submissions.
The nonwg_lists/submit wizard is nearly done; it needs templates
and to figure out why submit from step 2 goes back to step 1 instead
of calling done.

 The req_list wizard is just started.  It needs to get the incoming
value of domain_name as an alternat version of dname, and be able to
get dname from GET args to handle the javascript redirect.  It also
needs all the workflow ("I'm allowed to create this list",
who-is-approver, etc.) and additional forms.
 - Legacy-Id: 122
2007-05-10 22:01:36 +00:00
Bill Fenner 95209614b5 Introduce contrib/ to hold form wizard tool from django's trac.
Move form_decorator help function from utils.py to contrib/
 - Legacy-Id: 121
2007-05-10 21:57:22 +00:00
Michael Lee 73db42db56 Move the logic part to views.py for IESG announcement pages
- Legacy-Id: 120
2007-05-10 21:31:47 +00:00
Michael Lee f1ef54883d Remove extra method idballot from InternetDraft
- Legacy-Id: 119
2007-05-10 15:14:33 +00:00
Henrik Levkowetz 8e16dd2aea Template Cleanup - get rid of unused IPR templates
- Legacy-Id: 118
2007-05-10 15:08:08 +00:00
Michael Lee dc3f03480d * Add IESG Announcements pages
* Add BallotInfo model in idtracker models
 * Modified iesg/url.py for IESG Announcement pages
 - Legacy-Id: 117
2007-05-10 15:06:48 +00:00
Henrik Levkowetz 921236978b Add a reasonable default setup for syslog
- Legacy-Id: 116
2007-05-10 14:41:54 +00:00
Bill Fenner e1d94fce9a Set related_name values for prev_state and prev_sub_state, even though
I can't see a use for them, since setting "None" doesn't actually remove
 the reverse relation.
 - Legacy-Id: 115
2007-05-09 22:31:44 +00:00
Bill Fenner ab92a838a9 The Latin1 encoding setting actually causes problems, since django
assumes that data coming back from the database is unicode so the
 Latin1 data fails to decode properly.
 - Legacy-Id: 114
2007-05-09 22:08:48 +00:00
Vidyut Luther e7bd78c02b not sure why svn is being stupid here..this commit is worthless, and probably will fail
- Legacy-Id: 113
2007-05-09 22:04:05 +00:00
Vidyut Luther 384c992a92 removed extraneous .pyc files
- Legacy-Id: 112
2007-05-09 21:55:44 +00:00
Vidyut Luther 783ffb713d - Legacy-Id: 111 2007-05-09 21:05:20 +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
Bill Fenner d6b328188f Add accessors for "all sessions at this time" and "all combined
sessions at this time"
 - Legacy-Id: 109
2007-05-08 22:24:21 +00:00
Bill Fenner 96ae389b74 Use an idtracker-specific base.html instead of having the same
boilerplate in each template.

 Add evaluation_process (view_evaluation_desc) and ballot_key (view_key)
templates and urls.
 - Legacy-Id: 108
2007-05-08 22:22:03 +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 80829985a0 Added prettifying middleware (from djangosnippet 172)
- Legacy-Id: 103
2007-05-06 05:14:25 +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 f9b9b51536 Add author to iesg telechat minutes feed, to make it valid.
Add document comments feed to top-level urls.
 - Legacy-Id: 101
2007-05-04 21:49:21 +00:00
Bill Fenner 5fb1900540 Remove rfcs model; it's now in idtracker.
- Legacy-Id: 100
2007-05-04 21:35:33 +00:00
Bill Fenner 19896dc647 Adapt to moved Rfc model.
- Legacy-Id: 99
2007-05-04 21:35:12 +00:00
Bill Fenner e73f7dbf5f Implement most of view_id.
* Moved RFCs model into idtracker
 * Switched idtracker querys to use idinternal
 * Created idinternal.document which returns either an InternetDraft or
   an Rfc depending on the value of rfc_flag
 * Create compatability methods in InternetDraft and Rfc models
   to be able to use certain attributes in the template without
   worring about where they come from.

Ticket #59 has a list of remaining bits.
 - Legacy-Id: 98
2007-05-04 21:33:56 +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