svn commit: samba r21249 - in branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse: .

idra at samba.org idra at samba.org
Thu Feb 8 21:26:45 GMT 2007


Author: idra
Date: 2007-02-08 21:26:44 +0000 (Thu, 08 Feb 2007)
New Revision: 21249

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=21249

Log:

Now the ldif is generated correctly, but still rpc is not happy


Modified:
   branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/LdbModify.js


Changeset:
Modified: branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/LdbModify.js
===================================================================
--- branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/LdbModify.js	2007-02-08 21:02:42 UTC (rev 21248)
+++ branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/LdbModify.js	2007-02-08 21:26:44 UTC (rev 21249)
@@ -328,11 +328,13 @@
   }
 
   var ldif = "# Add operation\n";
-  ldif = ldif + "dn: " + this._rdn + "," + this._basedn + "\n";
+  ldif = ldif + "dn: " + this._rdn.getValue() + "," + this._basedn.getValue() + "\n";
 
-  for (var c in this._attrArea.getChildren()) {
-    if (c instanceof qx.ui.layout.HorizontalBoxLayout) {
-      ldif = ldif + c.getUserData("attrName") + ": " + c.getUserData("attrVal").getValue() + "\n";
+  c = this._attrArea.getChildren();
+
+  for (var i = 0; i < c.length; i++) {
+    if (c[i] instanceof qx.ui.layout.HorizontalBoxLayout) {
+      ldif = ldif + c[i].getUserData("attrName") + ": " + c[i].getUserData("attrVal").getComputedValue() + "\n";
     }
   }
   // terminate ldif record



More information about the samba-cvs mailing list