Replace 'account' with 'user' everywhere.
[mailshears.git] / lib / common / davical_plugin.rb
index afd1d883e66115c32964fb9f9cd61f58c0622a93..a1dcba07b690b1f07eace23804597d9c61db977b 100644 (file)
@@ -22,8 +22,8 @@ module DavicalPlugin
   end
 
 
-  def describe_account(account)
-    principal_id = self.get_principal_id(account)
+  def describe_user(user)
+    principal_id = self.get_principal_id(user)
 
     if principal_id.nil?
       return 'User not found'
@@ -35,7 +35,7 @@ module DavicalPlugin
 
   protected;
 
-  def get_principal_id(account)
+  def get_principal_id(user)
     principal_id = nil
 
     begin
@@ -52,7 +52,7 @@ module DavicalPlugin
       sql_query += "      ON principal.user_no = usr.user_no) "
       sql_query += "WHERE usr.username = $1;"
 
-      connection.query(sql_query, [account]) do |result|
+      connection.query(sql_query, [user]) do |result|
         if result.num_tuples > 0
           principal_id = result[0]['principal_id']
         end