svn commit: samba r9498 - in branches/SAMBA_4_0/swat/scripting/server: .

tridge at samba.org tridge at samba.org
Tue Aug 23 02:00:44 GMT 2005


Author: tridge
Date: 2005-08-23 02:00:43 +0000 (Tue, 23 Aug 2005)
New Revision: 9498

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

Log:

converted the SWAT regedit backend code to use the OO calls

Modified:
   branches/SAMBA_4_0/swat/scripting/server/regedit.esp


Changeset:
Modified: branches/SAMBA_4_0/swat/scripting/server/regedit.esp
===================================================================
--- branches/SAMBA_4_0/swat/scripting/server/regedit.esp	2005-08-23 02:00:09 UTC (rev 9497)
+++ branches/SAMBA_4_0/swat/scripting/server/regedit.esp	2005-08-23 02:00:43 UTC (rev 9498)
@@ -12,8 +12,7 @@
 */
 function enum_keys(binding, path) {
 	printf("enum_keys(%s, %s)\n", binding, path);
-	var reg = winreg_init();
-	security_init(reg);
+	var reg = winregObj();
 
 	reg.credentials = session.authinfo.credentials;
 
@@ -22,7 +21,7 @@
 		printVars(status);
 		return undefined;
 	}
-	return winreg_enum_path(reg, path);
+	return reg.enum_path(path);
 }
 
 /* 
@@ -30,8 +29,7 @@
 */
 function enum_values(binding, path) {
 	printf("enum_values(%s, %s)\n", binding, path);
-	var reg = winreg_init();
-	security_init(reg);
+	var reg = winregObj();
 
 	reg.credentials = session.authinfo.credentials;
 
@@ -40,7 +38,7 @@
 		printVars(status);
 		return undefined;
 	}
-	return winreg_enum_values(reg, path);
+	return reg.enum_values(path);
 }
 
 /* register a call for clients to make */



More information about the samba-cvs mailing list