svn commit: samba r21137 - in branches/SAMBA_4_0/services/samba: .

derrell at samba.org derrell at samba.org
Sun Feb 4 19:58:16 GMT 2007


Author: derrell
Date: 2007-02-04 19:58:16 +0000 (Sun, 04 Feb 2007)
New Revision: 21137

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

Log:
If you change the name of a constant in one file, it helps to ensure that the use of the constant in other files is corrected as well.
Modified:
   branches/SAMBA_4_0/services/samba/ldb.esp


Changeset:
Modified: branches/SAMBA_4_0/services/samba/ldb.esp
===================================================================
--- branches/SAMBA_4_0/services/samba/ldb.esp	2007-02-04 19:21:17 UTC (rev 21136)
+++ branches/SAMBA_4_0/services/samba/ldb.esp	2007-02-04 19:58:16 UTC (rev 21137)
@@ -67,7 +67,7 @@
 {
     if (params.length < 1)
     {
-        error.setError(jsonrpc.Constant.ErrorCode.ParameterMismatch,
+        error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
                        "usage: <db_name> [<option> ...]");
         return error;
     }
@@ -128,7 +128,7 @@
 {
     if (params.length != 1)
     {
-        error.setError(jsonrpc.Constant.ErrorCode.ParameterMismatch,
+        error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
                        "usage: <resource_id>");
         return error;
     }
@@ -169,7 +169,7 @@
 {
     if (params.length != 1)
     {
-        error.setError(jsonrpc.Constant.ErrorCode.ParameterMismatch,
+        error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
                        "usage: <resource_id>");
         return error;
     }
@@ -202,7 +202,7 @@
 {
     if (params.length != 1)
     {
-        error.setError(jsonrpc.Constant.ErrorCode.ParameterMismatch,
+        error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
                        "usage: <resource_id>");
         return error;
     }
@@ -235,7 +235,7 @@
 {
     if (params.length != 1)
     {
-        error.setError(jsonrpc.Constant.ErrorCode.ParameterMismatch,
+        error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
                        "usage: <resource_id>");
         return error;
     }
@@ -285,7 +285,7 @@
 {
     if (params.length < 2 || params.length > 5)
     {
-        error.setError(jsonrpc.Constant.ErrorCode.ParameterMismatch,
+        error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
                        "usage: " +
                        "<resource_id> <expr> [<baseDN> [<scope> [<attrs>]]]");
         return error;
@@ -327,7 +327,7 @@
     }
     else
     {
-        error.setError(jsonrpc.Constant.ErrorCode.ParameterMismatch,
+        error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
                        "invalid scope: " + scope);
         return error;
     }
@@ -357,7 +357,7 @@
 {
     if (params.length != 2)
     {
-        error.setError(jsonrpc.Constant.ErrorCode.ParameterMismatch,
+        error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
                        "usage: <resource_id> <ldif>");
         return error;
     }
@@ -393,7 +393,7 @@
 {
     if (params.length != 2)
     {
-        error.setError(jsonrpc.Constant.ErrorCode.ParameterMismatch,
+        error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
                        "usage: <resource_id> <ldif>");
         return error;
     }
@@ -429,7 +429,7 @@
 {
     if (params.length != 2)
     {
-        error.setError(jsonrpc.Constant.ErrorCode.ParameterMismatch,
+        error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
                        "usage: <resource_id> <dn>");
         return error;
     }
@@ -468,7 +468,7 @@
 {
     if (params.length != 3)
     {
-        error.setError(jsonrpc.Constant.ErrorCode.ParameterMismatch,
+        error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
                        "usage: <resource_id> <old_dn> <new_dn>");
         return error;
     }
@@ -504,7 +504,7 @@
 {
     if (params.length != 2)
     {
-        error.setError(jsonrpc.Constant.ErrorCode.ParameterMismatch,
+        error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
                        "usage: <resource_id> <string_to_be_encoded>");
         return error;
     }
@@ -540,7 +540,7 @@
 {
     if (params.length != 2)
     {
-        error.setError(jsonrpc.Constant.ErrorCode.ParameterMismatch,
+        error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
                        "usage: <resource_id> <string_to_be_decoded>");
         return error;
     }
@@ -576,7 +576,7 @@
 {
     if (params.length != 2)
     {
-        error.setError(jsonrpc.Constant.ErrorCode.ParameterMismatch,
+        error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
                        "usage: <resource_id> <string_to_be_decoded>");
         return error;
     }
@@ -608,7 +608,7 @@
 {
     if (params.length != 1)
     {
-        error.setError(jsonrpc.Constant.ErrorCode.ParameterMismatch,
+        error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
                        "usage: <resource_id>");
         return error;
     }



More information about the samba-cvs mailing list