<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 09/09/2010 07:00 PM, Endi Sukma Dewata wrote:
<blockquote
 cite="mid:301148013.1798681284073213582.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com"
 type="cite">
  <pre wrap="">Hi,

Please review the attached patch. Thanks!

The EntityBuilder has been modified to obtain the pkey value by
invoking getPKey(). This function can be overriden for different
entities.

The addOptionsFunction() has been renamed to getOptions() and it
can be overriden for different entities. Each entity that uses this
function has been modified accordingly.

The addEdit(), addAnother(), add_fail() has been moved into the
EntityBuilder class. The global builders is no longer needed because
a reference to the builder object can be obtained via enclosure.

The ServiceForms has been modified to take service name and
hostname and combine them to generate the service principal by
overriding the getPKey().

--
Endi S. Dewata
  </pre>
  <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>
ACK, although please add the following error check in add.js line 67ish<br>
 if (response.error){<br>
                        if (response.error.message){<br>
                            alert(response.error.message);<br>
                        }else{<br>
                            alert("error adding entry");<br>
                        }<br>
                        return;<br>
                    }<br>
<br>
<br>
<br>
</body>
</html>