Alec Thomas wrote:
  - Remove code specific to individual fields from ticket.cs/newticket.cs:
        The summary, type, description and reporter would be converted
        to use the the same generic code as the rest of the fields.

  - Remove large "if/elif" statement from ticket.cs/newticket.cs:
        Currently there is a large if/then/else style block which is
        used to display all fields other than the four described above.
        This could be removed and replaced with a call to form_control().

  - In order to specify the order the generic field display code would
    use, the above changes would probably require the ticket.fields.* HDF
    branch to be changed to an array (currently it is a dict). This
    change would be in api.py (return fields in the correct display
    order) and the .cs files, possibly elsewhere.

  - If possible I would also like to factor out the ticket field
    display/edit code from both ticket.cs and newticket.cs into
    ticket_fields.cs, as the template code is basically functionally
    identical.
Those are still pending, right?
I think that would be a good thing.

-- Christian
_______________________________________________
Trac-dev mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-dev

Reply via email to