Append only field

"Stuart Stevens" <[email protected]>
Newsgroups gmane.comp.bug-tracking.gnats.general
Message-ID <[email protected]>
I am interested in having an append only field.  When edited, the field
would be blank and any new text would be added to the field with the date
and user name.  The entries would have the newest first.  Perhaps the order
would be an attribute.  A template can be used to define the separation of
each entry.

This can be achieved partially by using on-change and a one line change to
gnatsweb.pr.  Editpr users would have to clear the "Comments" field for
every submission.  Is anybody working on an append only field?  Is there any
interest in such a field?


field "Comments" {
    multitext {
        default ""
    }
    on-change "Comments!=\"\"" {
        set-field "Comments" {
"================================================\n%D  %s\n\n%s\n\n%s\n"
                "$CurrentDate" "$EditUserEmailAddr" "$NewValue" "$OldValue"

        }
    }
    on-change "Comments==\"\"" {
        set-field "Comments" {
            "%s" "$OldValue"
        }
    }
}



Stuart Stevens
Firmware Engineer
Sierra Logic Inc.
9083 Foothills Blvd., Suite 300, Roseville, CA 95747
916 772-1234 x146,  916 772-1811 Fax
[email protected]   www.sierralogic.com

NOTICE:  This email message is for the sole use of the intended recipients
and may contain confidential and privileged information.  Any unauthorized
review, use, disclosure or distribution is prohibited.  If you are not the
intended recipient, please contact the sender by reply email and destroy all
copies of the original message.

_______________________________________________
Help-gnats mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gnats
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.