<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 02/03/2011 07:57 AM, Endi Sukma Dewata wrote:
    <blockquote cite="mid:4D4AA62B.1040306@redhat.com" type="cite">A
      multi-valued text widget has been created to replace the old
      <br>
      IPA.details_field. There are some differences:
      <br>
      <br>
      The old code was designed to handle all data types, so the code is
      <br>
      incomplete and complex. The new code was designed to handle multi-
      <br>
      valued text attributes only, so it's easier to maintain. There are
      <br>
      already other widgets that can be used to handle other data types.
      <br>
      <br>
      In the old code, if an attribute contains multiple values there
      <br>
      will be one undo link for each value. In the new code there will
      <br>
      be only one undo link for the whole attribute.
      <br>
      <br>
      In the old code, when a value is removed, the value will be
      crossed
      <br>
      out. In the new code when a value is removed the entire line will
      <br>
      disappear.
      <br>
      <br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Freeipa-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Freeipa-devel@redhat.com">Freeipa-devel@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/freeipa-devel">https://www.redhat.com/mailman/listinfo/freeipa-devel</a></pre>
    </blockquote>
    <br>
    NACK.  Mostly good, but not sure I agree 100%.  Line level Undo we
    very specific for the multi values.  Undo should be for individuals,
    not for the overall.<br>
    <br>
    I realize that this makes the logic a little bit harder if you want
    to, say,  abandon your changes on phonen numbers, but keep them for
    Title,  it is hard to get the undo just right.  <br>
    <br>
    So:  Multi values should have an "undo all"  in addition to line
    level undo.  <br>
    <br>
    I'd like to leave the "line-out"  approach in there for removed
    entries as well.  A user can always repurpose a line, so there
    undo/redo will be valuable at the line level. For straight delete, I
    think it is valuable for the user to see the original value.<br>
    <br>
    <br>
    Also, it looks like the code for "create_remove_link" is still in
    IPA.details_field.  I'm guessing that this is dead code that should
    be removed.  At a minimum, it should be moved to the new widget.<br>
    <br>
    <br>
  </body>
</html>